Showing
4 changed files
with
18 additions
and
2 deletions
| ... | @@ -268,6 +268,7 @@ | ... | @@ -268,6 +268,7 @@ |
| 268 | import request from "@/utils/request"; | 268 | import request from "@/utils/request"; |
| 269 | import { deepClone } from "@/utils"; | 269 | import { deepClone } from "@/utils"; |
| 270 | export default { | 270 | export default { |
| 271 | + name: "YlForm", | ||
| 271 | props: { | 272 | props: { |
| 272 | rowGutter: { | 273 | rowGutter: { |
| 273 | type: Number, | 274 | type: Number, | ... | ... |
| ... | @@ -70,6 +70,13 @@ export default { | ... | @@ -70,6 +70,13 @@ export default { |
| 70 | multipleSelection: [], | 70 | multipleSelection: [], |
| 71 | }; | 71 | }; |
| 72 | }, | 72 | }, |
| 73 | + watch: { | ||
| 74 | + $route(to, from) { | ||
| 75 | + if (to.name == this.$options.name) { | ||
| 76 | + this.searchBtn(); | ||
| 77 | + } | ||
| 78 | + }, | ||
| 79 | + }, | ||
| 73 | created() { | 80 | created() { |
| 74 | // 黑名单查询 | 81 | // 黑名单查询 |
| 75 | this.$nextTick(() => { | 82 | this.$nextTick(() => { | ... | ... |
| ... | @@ -73,8 +73,9 @@ export default { | ... | @@ -73,8 +73,9 @@ export default { |
| 73 | watch: { | 73 | watch: { |
| 74 | $route(to, from) { | 74 | $route(to, from) { |
| 75 | // 如果是从edit页面进入的Et86RuleConfig页面,那么删除Et86RuleConfig页面缓存 | 75 | // 如果是从edit页面进入的Et86RuleConfig页面,那么删除Et86RuleConfig页面缓存 |
| 76 | - if (from.name == "edit" && to.name == "Et86RuleConfig") { | 76 | + // store.dispatch("tagsView/delCachedView", to); // 删除当前路由组件Et86RuleConfig缓存 |
| 77 | - store.dispatch("tagsView/delCachedView", to); | 77 | + if (to.name == this.$options.name) { |
| 78 | + this.searchBtn(); | ||
| 78 | } | 79 | } |
| 79 | }, | 80 | }, |
| 80 | }, | 81 | }, | ... | ... |
| ... | @@ -72,6 +72,13 @@ export default { | ... | @@ -72,6 +72,13 @@ export default { |
| 72 | multipleSelection: [], | 72 | multipleSelection: [], |
| 73 | }; | 73 | }; |
| 74 | }, | 74 | }, |
| 75 | + watch: { | ||
| 76 | + $route(to, from) { | ||
| 77 | + if (to.name == this.$options.name) { | ||
| 78 | + this.searchBtn(); | ||
| 79 | + } | ||
| 80 | + }, | ||
| 81 | + }, | ||
| 75 | created() { | 82 | created() { |
| 76 | // 黑名单查询 | 83 | // 黑名单查询 |
| 77 | this.$nextTick(() => { | 84 | this.$nextTick(() => { | ... | ... |
-
Please register or login to post a comment