|
@@ -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 });
|
|
|
|
|
|
}
|
|
|
},
|