Compare commits
2 Commits
089a5b1c0f
...
5038392cea
| Author | SHA1 | Date | |
|---|---|---|---|
| 5038392cea | |||
| 8c0a0340af |
@ -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>
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user