|
@@ -177,12 +177,15 @@ export default {
|
|
try {
|
|
try {
|
|
this.languagename = localStorage.getItem("languagename") || "简体中文";
|
|
this.languagename = localStorage.getItem("languagename") || "简体中文";
|
|
this.nowType = localStorage.getItem("lang") || "ZH";
|
|
this.nowType = localStorage.getItem("lang") || "ZH";
|
|
|
|
+ console.log('输出预约',this.languagename)
|
|
|
|
+ console.log(this.nowType)
|
|
} catch (error) {
|
|
} catch (error) {
|
|
this.languagename = "简体中文";
|
|
this.languagename = "简体中文";
|
|
this.nowType = "ZH";
|
|
this.nowType = "ZH";
|
|
}
|
|
}
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
this.$i18n.locale = this.nowType;
|
|
this.$i18n.locale = this.nowType;
|
|
|
|
+ console.log(this.nowType,'输出')
|
|
});
|
|
});
|
|
// this.i18nChangeLanguage(this.nowType)
|
|
// this.i18nChangeLanguage(this.nowType)
|
|
/*this.qusetLanguage();*/
|
|
/*this.qusetLanguage();*/
|
|
@@ -374,6 +377,7 @@ export default {
|
|
this.langusge.find((v) => v.languagecode == this.nowType)
|
|
this.langusge.find((v) => v.languagecode == this.nowType)
|
|
.languagename || "简体中文";
|
|
.languagename || "简体中文";
|
|
localStorage.setItem("languagename", this.languagename);
|
|
localStorage.setItem("languagename", this.languagename);
|
|
|
|
+ this.i18nChangeLanguage(this.nowType)
|
|
},
|
|
},
|
|
async i18nChangeLanguage(type) {
|
|
async i18nChangeLanguage(type) {
|
|
this.nowType = type;
|
|
this.nowType = type;
|