浏览代码

处理空行

natasha 2 年之前
父节点
当前提交
26013ed38c
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/components/Adult/inputModules/DialogueTem/components/SegbywordChs.vue

+ 11 - 0
src/components/Adult/inputModules/DialogueTem/components/SegbywordChs.vue

@@ -353,6 +353,17 @@ export default {
     },
     save() {
       let _this = this;
+      let wordlist = []
+      this.paraCon.wordsList.forEach(item=>{
+        let wordlistItem = []
+        item.forEach(items=>{
+            if(items.chs){
+                wordlistItem.push(items)
+            }
+        })
+        wordlist.push(wordlistItem)
+      })
+      this.paraCon.wordsList = wordlist
       let paraCon = JSON.parse(JSON.stringify(this.paraCon));
       _this.$set(_this.curQue.detail, _this.proofParaIndex, paraCon);
       _this.$message.success("保存成功");