2023-11-9-2
This commit is contained in:
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user