瀏覽代碼

fix: 编辑关闭查看面板

jinx 2 年之前
父節點
當前提交
5d2317bd13
共有 2 個文件被更改,包括 6 次插入3 次删除
  1. 3 3
      src/components/files/TagEditor.vue
  2. 3 0
      src/components/files/index.vue

+ 3 - 3
src/components/files/TagEditor.vue

@@ -7,8 +7,8 @@
             </header>
             <article>
                 <div>
-                    <h4><span>*</span>资料名称</h4>
-                    <UiInput v-model="form.title" type="text" placeholder="请输入资料名称" :maxlength="20" />
+                    <h4><span>*</span>标注名称</h4>
+                    <UiInput v-model="form.title" type="text" placeholder="请输入标注名称" :maxlength="20" />
                 </div>
                 <div>
                     <h4><span>*</span>状态</h4>
@@ -87,7 +87,7 @@ const onClose = () => {
 let pushData = null
 const onSubmit = async () => {
     if (!form.value.title) {
-        return (showTips.value = '请输入资料名称')
+        return (showTips.value = '请输入标注名称')
     }
     if (!form.value.status) {
         return (showTips.value = '请选择处理状态')

+ 3 - 0
src/components/files/index.vue

@@ -220,6 +220,9 @@ const onShowMore = tag => {
 }
 const onMoreHandler = (type, tag) => {
     if (type == 'modify') {
+        if (notify.value) {
+            notify.value = null
+        }
         editTag = tags.value.find(item => item.sid == tag.sid)
         showFiles.value = false
         showToolbar.value = true