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: "新增成功!"
                 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.sortTag = false
         this.sortTag2 = false
         this.sortTag2 = false
         //刷新页面
         //刷新页面
-        window.location.reload()
+        // window.location.reload()
+        this.ishowTree=false;
+        setTimeout(() => {
+          this.ishowTree=true;
+        }, 100);
+        this.defaultExpandedKeys = getStore({ name: this.expandName });
    
    
       }
       }
     },
     },