瀏覽代碼

词句卡片 字模式和句子模式无法正常显示的问题

qinpeng 2 年之前
父節點
當前提交
4132ed936c
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      src/views/wordcard/cread.vue

+ 2 - 4
src/views/wordcard/cread.vue

@@ -537,7 +537,6 @@ export default {
           if (contentItem) option.push(contentItem);
         }
       }
-      console.log(option);
       let hz_str = "";
       if (data.typeIndex == 0) {
         option.forEach((item) => {
@@ -560,7 +559,7 @@ export default {
         .then((res) => {
           this.loading = false;
           for (let key in res) {
-            if (key != "status") {
+            if (key != "status" && key != ",") {
               res[key] = JSON.parse(res[key]);
             }
           }
@@ -615,6 +614,7 @@ export default {
           this.$set(data.option[i].hzDetail, "hz_json", res);
         });
         if (data.StorkesUnfold) {
+          let allArr = [];
           data.option.forEach((item) => {
             let arr = [];
             let hzLength = 1;
@@ -713,8 +713,6 @@ export default {
           }
           data.result = this.arrSplice(allArr, data.pageNumber);
           this.writeTableData = data;
-          clearInterval(timer);
-          timer = null;
         } else {
           let allArr = [];
           data.option.forEach((item) => {