Compare commits

2 Commits

2 changed files with 5 additions and 5 deletions

View File

@ -89,7 +89,7 @@ const handleLogout = () => {
<footer v-if="!isLoginPage" class="app-footer"> <footer v-if="!isLoginPage" class="app-footer">
<span class="version-tag"> <span class="version-tag">
<el-icon style="vertical-align: middle; margin-right: 4px"><InfoFilled /></el-icon> <el-icon style="vertical-align: middle; margin-right: 4px"><InfoFilled /></el-icon>
当前版本: 3.18扫描版本 当前版本:V3.2(3.18上传版本
</span> </span>
</footer> </footer>
</div> </div>

View File

@ -28,8 +28,8 @@
<div class="raw-text">{{ rawText }}</div> <div class="raw-text">{{ rawText }}</div>
</div> </div>
<!-- 智能切割标签 --> <!-- 智能切割标签 - 仅当有多个有效片段时显示 -->
<div class="smart-tags"> <div v-if="splitSegments.length > 1" class="smart-tags">
<div class="label">智能切割点击标签提取</div> <div class="label">智能切割点击标签提取</div>
<div class="tags-container"> <div class="tags-container">
<el-tag <el-tag
@ -162,8 +162,8 @@ const handleScanSuccess = (text: string) => {
} }
const splitText = (text: string) => { const splitText = (text: string) => {
// 使用正则表达式智能切割 // 使用正则表达式智能切割,过滤空字符串
const segments = text.split(/[;,\s_\|:]+/).filter(s => s.trim().length > 0) const segments = text.split(/[;,\s_\|:]+/).filter(s => s && s.trim().length > 0)
splitSegments.value = segments splitSegments.value = segments
if (segments.length > 0) { if (segments.length > 0) {
selectedSegmentIndex.value = 0 selectedSegmentIndex.value = 0