Procházet zdrojové kódy

写字保存后关闭弹窗

natasha před 3 měsíci
rodič
revize
172bd91fb3

+ 5 - 5
src/App.vue

@@ -51,12 +51,12 @@ export default {
     // 判断是否为chrome浏览器
     handleUserAgentRoot() {
       if (
-        (!sessionStorage.getItem("useragent_root_close") &&
-          navigator.userAgent.indexOf("Chrome") == -1) ||
-        (!sessionStorage.getItem("useragent_root_close") &&
-          navigator.userAgent.indexOf("CriOS") == -1 &&
-          this.isPhone)
+        (navigator.userAgent.indexOf("Chrome") > -1 ||
+          navigator.userAgent.indexOf("CriOS") > -1) &&
+        !sessionStorage.getItem("useragent_root_close")
       ) {
+        this.userAgentTipShow = false;
+      } else {
         this.userAgentTipShow = true;
       }
     },

+ 1 - 0
src/components/Adult/phonePreview/NewWordShow.vue

@@ -411,6 +411,7 @@ export default {
       this.curQue.option[rowIndex].imgarr[colIndex] = data;
       this.ifFreeShow = false;
       this.freeWrite(data, rowIndex, colIndex);
+      this.ifFreeShow = false;
       this.$forceUpdate();
     },
     freeWrite(imgUrl, index, indexs) {

+ 1 - 0
src/components/Adult/preview/NewWordShow.vue

@@ -512,6 +512,7 @@ export default {
       this.curQue.option[rowIndex].imgarr[colIndex] = data;
       this.ifFreeShow = false;
       this.freeWrite(data, rowIndex, colIndex);
+      this.ifFreeShow = false;
       this.$forceUpdate();
     },
     freeWrite(imgUrl, index, indexs) {

+ 5 - 1
src/components/TreeView.vue

@@ -15,7 +15,11 @@
               : 'tree_box_item',
             node.data.children ? 'tree_box_item_father' : '',
             node.data.level_index ===
-            nodeLevel.substring(0, node.data.level_index.length)
+              nodeLevel.substring(0, node.data.level_index.length) &&
+            nodeLevel.substring(
+              node.data.level_index.length,
+              node.data.level_index.length + 1
+            ) === '-'
               ? 'tree_box_item_active'
               : ''
           ]"