@@ -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 = ''
@@ -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
})