1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 05:31:08 +08:00
This commit is contained in:
Pan 2018-08-29 15:02:54 +08:00
parent 3fbbe8a7f0
commit e124e16059
2 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,7 @@ export default {
this.$i18n.locale = lang
this.$store.dispatch('setLanguage', lang)
this.$message({
message: 'switch language success',
message: 'Switch Language Success',
type: 'success'
})
}

View File

@ -24,11 +24,12 @@ export default {
this.$store.dispatch('setSize', size)
this.refreshView()
this.$message({
message: 'switch size success',
message: 'Switch Size Success',
type: 'success'
})
},
refreshView() {
// In order to make the cached page re-rendered
const visitedViews = [...this.$store.getters.visitedViews].map(i => {
i.meta.noCache = true
return i
@ -42,6 +43,7 @@ export default {
})
const { path } = this.$route
this.$router.replace({
path: '/redirect' + path
})
@ -55,7 +57,7 @@ export default {
.size-icon {
font-size: 20px;
cursor: pointer;
vertical-align: -5px!important;
vertical-align: -4px!important;
}
</style>