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