fix
This commit is contained in:
@@ -233,7 +233,7 @@
|
||||
import { defineComponent,ref ,onMounted} from "vue";
|
||||
import { Https } from "@/tool/https";
|
||||
import { isEmail } from "@/tool/util";
|
||||
import { setCookie } from "@/tool/cookie";
|
||||
import { setCookie ,WriteCookie } from "@/tool/cookie";
|
||||
import { message } from "ant-design-vue";
|
||||
import VerificationCodeInput from "@/component/LoginPage/verificationCodeInput.vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
@@ -246,6 +246,7 @@ export default defineComponent({
|
||||
setup(){
|
||||
let timer:any = 0;
|
||||
const {locale} = useI18n()
|
||||
WriteCookie("token");
|
||||
|
||||
return{
|
||||
timer,
|
||||
@@ -463,12 +464,11 @@ export default defineComponent({
|
||||
Https.axiosPost(Https.httpUrls.accountLogin, data).then(
|
||||
(rv: any) => {
|
||||
if (rv) {
|
||||
console.log(rv);
|
||||
|
||||
this.createTimer();
|
||||
let isTest = rv.isTrial == 1?true:false
|
||||
let isBeginner = rv.isBeginner == 1?true:false
|
||||
let token = rv.token;
|
||||
setCookie("isMurmur", false);
|
||||
setCookie("token", token);
|
||||
setCookie("isTest", isTest);
|
||||
setCookie("isBeginner", isBeginner);
|
||||
|
||||
Reference in New Issue
Block a user