bugfix: store调用失败

This commit is contained in:
2025-12-12 10:50:37 +08:00
parent 17f0045dbe
commit 743b3f0ef6

View File

@@ -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)
})
},