pull/1024/head
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.$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'
}) })
} }

View File

@ -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>