refine
parent
3fbbe8a7f0
commit
e124e16059
|
@ -22,7 +22,7 @@ export default {
|
||||||
this.$i18n.locale = lang
|
this.$i18n.locale = lang
|
||||||
this.$store.dispatch('setLanguage', lang)
|
this.$store.dispatch('setLanguage', lang)
|
||||||
this.$message({
|
this.$message({
|
||||||
message: 'switch language success',
|
message: 'Switch Language Success',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,11 +24,12 @@ export default {
|
||||||
this.$store.dispatch('setSize', size)
|
this.$store.dispatch('setSize', size)
|
||||||
this.refreshView()
|
this.refreshView()
|
||||||
this.$message({
|
this.$message({
|
||||||
message: 'switch size success',
|
message: 'Switch Size Success',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
refreshView() {
|
refreshView() {
|
||||||
|
// In order to make the cached page re-rendered
|
||||||
const visitedViews = [...this.$store.getters.visitedViews].map(i => {
|
const visitedViews = [...this.$store.getters.visitedViews].map(i => {
|
||||||
i.meta.noCache = true
|
i.meta.noCache = true
|
||||||
return i
|
return i
|
||||||
|
@ -42,6 +43,7 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
const { path } = this.$route
|
const { path } = this.$route
|
||||||
|
|
||||||
this.$router.replace({
|
this.$router.replace({
|
||||||
path: '/redirect' + path
|
path: '/redirect' + path
|
||||||
})
|
})
|
||||||
|
@ -55,7 +57,7 @@ export default {
|
||||||
.size-icon {
|
.size-icon {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
vertical-align: -5px!important;
|
vertical-align: -4px!important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue