2023-11-10-dist
This commit is contained in:
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user