src/views/login.vue
@@ -177,6 +177,12 @@ } } } //检测租户选择框的变化 watch(() => loginForm.value.tenantId, (val: string) => { Cookies.set("tenantId", loginForm.value.tenantId, { expires: 30 }) }); /** * 第三方登录 * @param type @@ -184,8 +190,9 @@ const doSocialLogin = (type: string) => { authBinding(type).then((res: any) => { if (res.code === 200) { window.location.href = res.msg; } else { // 获取授权地址跳转 window.location.href = res.data; } else { ElMessage.error(res.msg); } });