2023-11-15-dist

This commit is contained in:
X1627315083
2023-11-15 09:59:24 +08:00
parent e3a2f8d25d
commit 0ad232a381
13 changed files with 73 additions and 39 deletions

View File

@@ -210,6 +210,7 @@ export default defineComponent({
this.isHaveBindEmail = this.userInfo?.email ? true : false;
this.operateClick();
document.addEventListener("click", this.operateClick);
this.getLang('')
},
methods: {
turnToNewPage(url) {
@@ -372,30 +373,39 @@ export default defineComponent({
}, 1000);
},
//获取当前语言
getLang(){
getLang(v){
let data
Https.axiosPost(Https.httpUrls.getUserLanguage, data).then(
(rv) => {
if (rv) {
this.locale = v
console.log(rv);
this.locale = rv
}
}
);
},
setLang(v){
let data = {
language:v
}
Https.axiosPost(Https.httpUrls.changeUserLanguage, data).then(
(rv) => {
if (rv) {
// let data = {
// language:v
// }
Https.axiosGet(Https.httpUrls.changeUserLanguage,{params:{language:v}}).then((rv) => {
if (rv) {
if (rv) {
let token = rv;
setCookie("token", token);
location.reload()
this.getLang(v)
}
}
);
}
})
// Https.axiosPost(Https.httpUrls.changeUserLanguage, data).then(
// (rv) => {
// if (rv) {
// let token = rv;
// setCookie("token", token);
// this.getLang(v)
// }
// }
// );
},
setLocale(v){