瀏覽代碼

reset 回滚 错误修复 并增加正确修复

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

+ 3 - 0
src/layout/components/SocialCallback/index.vue

@@ -27,6 +27,9 @@ const processResponse = async (res: any) => {
   if (res.code !== 200) {
     throw new Error(res.msg);
   }
+  if (res.data !== null) {
+    setToken(res.data.access_token);
+  }
   ElMessage.success(res.msg);
   location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index';
 };