scorpio 2 years ago
parent
commit
8ef90a412b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/views/task/component/wt-label.vue

+ 2 - 1
src/views/task/component/wt-label.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="flex flex-wrap flex-center">
-    <div v-if="tags.length > 2" class="flex flex-center flex-justify-start">
+    <div v-if="tags.length >= 2" class="flex flex-center flex-justify-start">
       <div class="tag flex flex-center" v-for="i in tags" :key="i.id">
         {{ i.dictValue }}
         <el-icon class="ml-10" @click="remove(i)" v-if="!disabled">
@@ -112,6 +112,7 @@ export default {
       ]
       this.show = false
       this.form = {}
+      console.log(this.tags)
       this.$emit('submit', this.tags)
     },
     remove(res) {