Elements-SY

modify

......@@ -268,6 +268,7 @@
import request from "@/utils/request";
import { deepClone } from "@/utils";
export default {
name: "YlForm",
props: {
rowGutter: {
type: Number,
......
......@@ -70,6 +70,13 @@ export default {
multipleSelection: [],
};
},
watch: {
$route(to, from) {
if (to.name == this.$options.name) {
this.searchBtn();
}
},
},
created() {
// 黑名单查询
this.$nextTick(() => {
......
......@@ -73,8 +73,9 @@ export default {
watch: {
$route(to, from) {
// 如果是从edit页面进入的Et86RuleConfig页面,那么删除Et86RuleConfig页面缓存
if (from.name == "edit" && to.name == "Et86RuleConfig") {
store.dispatch("tagsView/delCachedView", to);
// store.dispatch("tagsView/delCachedView", to); // 删除当前路由组件Et86RuleConfig缓存
if (to.name == this.$options.name) {
this.searchBtn();
}
},
},
......
......@@ -72,6 +72,13 @@ export default {
multipleSelection: [],
};
},
watch: {
$route(to, from) {
if (to.name == this.$options.name) {
this.searchBtn();
}
},
},
created() {
// 黑名单查询
this.$nextTick(() => {
......