2023-11-9-2

This commit is contained in:
X1627315083
2023-11-09 16:55:20 +08:00
parent 897f61a3c9
commit 223984c10b
12 changed files with 166 additions and 96 deletions

View File

@@ -234,6 +234,7 @@ import { isEmail } from "@/tool/util";
import { setCookie } from "@/tool/cookie";
import { message } from "ant-design-vue";
import VerificationCodeInput from "@/component/LoginPage/verificationCodeInput.vue";
import { useI18n } from "vue-i18n";
const md5 = require("md5");
export default defineComponent({
@@ -242,9 +243,11 @@ export default defineComponent({
},
setup(){
let timer:any = 0;
const {locale} = useI18n()
return{
timer
timer,
locale
}
},
@@ -495,9 +498,20 @@ export default defineComponent({
//跳转到首页
turnToHomePage() {
this.getLang()
this.$router.push("/home");
},
//获取当前语言
getLang(){
let data = {}
Https.axiosPost(Https.httpUrls.getUserLanguage, data).then(
(rv: any) => {
if (rv) {
this.locale = rv
}
}
);
},
turnToWindow(url: any) {
window.open(url);
},