duy vor 1 Jahr
Ursprung
Commit
c7e61a2df2
1 geänderte Dateien mit 8 neuen und 2 gelöschten Zeilen
  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 });
    
       }
     },