duy 1 年之前
父節點
當前提交
c7e61a2df2
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      src/views/measure/systemUnit.vue

+ 8 - 2
src/views/measure/systemUnit.vue

@@ -417,7 +417,8 @@ import { getStore, setStore } from "@/util/store";
                 message: "新增成功!"
               });
                //刷新页面
-              window.location.reload()
+              // window.location.reload()
+              this.defaultExpandedKeys = getStore({ name: this.expandName });
             })
           }
         })
@@ -526,7 +527,12 @@ import { getStore, setStore } from "@/util/store";
         this.sortTag = false
         this.sortTag2 = false
         //刷新页面
-        window.location.reload()
+        // window.location.reload()
+        this.ishowTree=false;
+        setTimeout(() => {
+          this.ishowTree=true;
+        }, 100);
+        this.defaultExpandedKeys = getStore({ name: this.expandName });
    
       }
     },