CJ 1 년 전
부모
커밋
470066e872
2개의 변경된 파일7개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 3
      dtok-mobile-vuetify/src/components/TagInput.vue
  2. 1 1
      dtok-mobile-vuetify/src/components/business/zbkc.vue

+ 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
     })