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

This commit is contained in:
fit2cloud-chenyw 2021-04-28 12:23:06 +08:00
parent 2946017dd5
commit e8fa566549
6 changed files with 9 additions and 9 deletions

View File

@ -2,9 +2,9 @@
<section class="app-main">
<transition name="fade-transform" mode="out-in">
<el-main class="ms-main-container">
<keep-alive>
<router-view :key="key" />
</keep-alive>
<!-- <keep-alive> -->
<router-view :key="key" />
<!-- </keep-alive> -->
</el-main>
</transition>
</section>

View File

@ -154,7 +154,7 @@ export default {
}
}
},
activated() {
mounted() {
this.search()
},
methods: {
@ -199,7 +199,7 @@ export default {
this.$success(this.$t('commons.save_success'))
this.search()
this.dialogVisible = false
});
})
} else {
return false
}

View File

@ -199,7 +199,7 @@ export default {
isLazy: true
}
},
activated() {
mounted() {
this.form = Object.assign({}, this.defaultForm)
this.search()
},

View File

@ -195,7 +195,7 @@ export default {
}
},
activated() {
mounted() {
this.form = Object.assign({}, this.defaultForm)
this.initTableData()
},

View File

@ -146,7 +146,7 @@ export default {
watch: {
currentRow: 'currentRowChange'
},
activated() {
mounted() {
this.search()
},
methods: {

View File

@ -285,7 +285,7 @@ export default {
}
}
},
activated() {
mounted() {
// this.form = Object.assign({}, this.defaultForm);
this.allRoles()
this.search()