mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +08:00
fix: 修改类型错误
This commit is contained in:
parent
525941512e
commit
38a49d68e5
@ -29,7 +29,7 @@ export const useLangStore = defineStore({
|
|||||||
changeLang(lang: LangEnum): void {
|
changeLang(lang: LangEnum): void {
|
||||||
if (this.lang === lang) return
|
if (this.lang === lang) return
|
||||||
this.lang = lang
|
this.lang = lang
|
||||||
i18n.global.locale = (lang as unknown) as WritableComputedRef<LangEnum>
|
i18n.global.locale = lang
|
||||||
setLocalStorage(GO_LANG_STORE, this.$state)
|
setLocalStorage(GO_LANG_STORE, this.$state)
|
||||||
|
|
||||||
if (settingStore.getChangeLangReload) {
|
if (settingStore.getChangeLangReload) {
|
||||||
|
Loading…
Reference in New Issue
Block a user