CJ 1 年之前
父节点
当前提交
470066e872

+ 6 - 3
dtok-mobile-vuetify/src/components/TagInput.vue

@@ -7,10 +7,13 @@ let emit = defineEmits(['update:value'])
 let tags = reactive([])
 let textAreaStr = ref("")
 let isAdd = ref(false)
-
-tags = props.value
+if (props.value !== null && props.value.length > 0){
+  tags = reactive(props.value)
+}
 function addTags() {
-  tags = tags.concat(textAreaStr.value.split('\n'))
+  textAreaStr.value.split('\n').forEach((item,i)=>{
+    tags.push(item)
+  })
   emit('update:value',tags)
   isAdd.value = false
   textAreaStr.value = ''

+ 1 - 1
dtok-mobile-vuetify/src/components/business/zbkc.vue

@@ -25,7 +25,7 @@ watch(() => znzf.config, (value, oldValue, onCleanup) => {
 function startExec() {
 loadingBtn.value = true
 
-  znzf.config.plhs = JSON.parse(localStorage.getItem("commonItems"))[hsItem.value.select]
+  znzf.config.hhhs = JSON.parse(localStorage.getItem("commonItems"))[hsItem.value.select]
     .map((item) => {
       return item.content
     })