bugfix: store调用失败
This commit is contained in:
@@ -1334,7 +1334,7 @@ export default defineComponent({
|
||||
})
|
||||
},
|
||||
setLang(v) {
|
||||
store.commit('set_loading', true)
|
||||
this.store.commit('set_loading', true)
|
||||
Https.axiosGet(Https.httpUrls.changeUserLanguage, { params: { language: v } })
|
||||
.then(rv => {
|
||||
if (rv) {
|
||||
@@ -1351,11 +1351,11 @@ export default defineComponent({
|
||||
window.location.reload()
|
||||
// window.location.href = '/home';
|
||||
}
|
||||
store.commit('set_loading', false)
|
||||
this.store.commit('set_loading', false)
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
store.commit('set_loading', false)
|
||||
this.store.commit('set_loading', false)
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user