This commit is contained in:
luyuan 2020-12-15 14:23:23 +08:00
parent 23020a0512
commit bf21a73598
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -19,7 +19,6 @@ import { useRoute } from "vue-router";
export default defineComponent(({
setup(){
const code: any = useRoute().query.code;
console.log(code)
alert(code)
if(!code){
router.push("/")
@ -37,11 +36,11 @@ export default defineComponent(({
message.error("存储错误, 请允许网页使用本地存储!")
return false;
}else{
setToken();
store.commit("login", true);
store.dispatch("setUserInfo");
router.push("/mine/archives")
}
setToken();
store.commit("login", true);
store.dispatch("setUserInfo");
router.push("/mine/archives")
}
}
})
})