添加登录code
This commit is contained in:
parent
389fe17b18
commit
2a7cf2dedb
|
|
@ -307,6 +307,15 @@ onMounted(async () => {
|
|||
if (queryParams.code){
|
||||
code.value = queryParams.code as string;
|
||||
}
|
||||
|
||||
const token = localStorage.getItem("token") || "";
|
||||
if (token !== "") {
|
||||
await getMyUserInfo(0);
|
||||
if (code.value !== ''){
|
||||
//设置token code状态为已使用
|
||||
await SetTokenCodeStatusService(code.value, token);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
const thirdLogin = async (type) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue