2023-11-10-dist

This commit is contained in:
X1627315083
2023-11-10 10:56:18 +08:00
parent 223984c10b
commit 1298a3051e
20 changed files with 175 additions and 63 deletions

View File

@@ -375,26 +375,26 @@ export default defineComponent({
//获取当前语言
getLang(){
let data = {}
Https.axiosPost(Https.httpUrls.getUserLanguage, data).then(
(rv) => {
if (rv) {
this.locale = rv
}
}
);
// Https.axiosPost(Https.httpUrls.getUserLanguage, data).then(
// (rv) => {
// if (rv) {
// this.locale = rv
// }
// }
// );
},
setLang(v){
let data = {
language:v
}
Https.axiosPost(Https.httpUrls.changeUserLanguage, data).then(
(rv) => {
if (rv) {
console.log(rv);
// this.getLang()
}
}
);
// Https.axiosPost(Https.httpUrls.changeUserLanguage, data).then(
// (rv) => {
// if (rv) {
// console.log(rv);
// this.getLang()
// }
// }
// );
},
setLocale(v){
@@ -402,7 +402,7 @@ export default defineComponent({
// let name = 'home'
// let noRefresh = true;
// this.$router.push({ name: name, params: { noRefresh: noRefresh } });
this.locale = v
// this.locale = v
this.setLang(v)
// this.locale == 'zh-cn'?this.locale = 'en':this.locale = 'zh-cn'
}