提交 e8fa5665 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 一级菜单禁用keep-alive缓存组件

上级 2946017d
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
<section class="app-main"> <section class="app-main">
<transition name="fade-transform" mode="out-in"> <transition name="fade-transform" mode="out-in">
<el-main class="ms-main-container"> <el-main class="ms-main-container">
<keep-alive> <!-- <keep-alive> -->
<router-view :key="key" /> <router-view :key="key" />
</keep-alive> <!-- </keep-alive> -->
</el-main> </el-main>
</transition> </transition>
</section> </section>
......
...@@ -154,7 +154,7 @@ export default { ...@@ -154,7 +154,7 @@ export default {
} }
} }
}, },
activated() { mounted() {
this.search() this.search()
}, },
methods: { methods: {
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
this.$success(this.$t('commons.save_success')) this.$success(this.$t('commons.save_success'))
this.search() this.search()
this.dialogVisible = false this.dialogVisible = false
}); })
} else { } else {
return false return false
} }
......
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
isLazy: true isLazy: true
} }
}, },
activated() { mounted() {
this.form = Object.assign({}, this.defaultForm) this.form = Object.assign({}, this.defaultForm)
this.search() this.search()
}, },
......
...@@ -195,7 +195,7 @@ export default { ...@@ -195,7 +195,7 @@ export default {
} }
}, },
activated() { mounted() {
this.form = Object.assign({}, this.defaultForm) this.form = Object.assign({}, this.defaultForm)
this.initTableData() this.initTableData()
}, },
......
...@@ -146,7 +146,7 @@ export default { ...@@ -146,7 +146,7 @@ export default {
watch: { watch: {
currentRow: 'currentRowChange' currentRow: 'currentRowChange'
}, },
activated() { mounted() {
this.search() this.search()
}, },
methods: { methods: {
......
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
} }
} }
}, },
activated() { mounted() {
// this.form = Object.assign({}, this.defaultForm); // this.form = Object.assign({}, this.defaultForm);
this.allRoles() this.allRoles()
this.search() this.search()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论