瀏覽代碼

fix 修复 删除无用的参数获取

疯狂的狮子Li 1 年之前
父節點
當前提交
64aea65cef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/layout/components/SocialCallback/index.vue

+ 1 - 1
src/layout/components/SocialCallback/index.vue

@@ -27,7 +27,6 @@ const processResponse = async (res: any) => {
   if (res.code !== 200) {
     throw new Error(res.msg);
   }
-  setToken(res.data.access_token);
   ElMessage.success(res.msg);
   location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index';
 };
@@ -48,6 +47,7 @@ const callbackByCode = async (data: LoginData) => {
 };
 
 const loginByCode = async (data: LoginData) => {
+  console.log(2)
   try {
     const res = await login(data);
     await processResponse(res);