From 3fb8f1c2516f8e56ec9406426ccb4764c6c50968 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期日, 02 七月 2023 15:32:58 +0800 Subject: [PATCH] 回退 'Pull Request !20 : 统一登录授权' --- src/views/system/user/profile/index.vue | 16 ++-------------- 1 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/views/system/user/profile/index.vue b/src/views/system/user/profile/index.vue index b06da65..341c08d 100644 --- a/src/views/system/user/profile/index.vue +++ b/src/views/system/user/profile/index.vue @@ -55,9 +55,6 @@ <el-tab-pane label="淇敼瀵嗙爜" name="resetPwd"> <resetPwd /> </el-tab-pane> - <el-tab-pane label="绗笁鏂瑰簲鐢�" name="thirdParty"> - <thirdParty :auths="state.auths" /> - </el-tab-pane> </el-tabs> </el-card> </el-col> @@ -69,16 +66,13 @@ import userAvatar from "./userAvatar.vue"; import userInfo from "./userInfo.vue"; import resetPwd from "./resetPwd.vue"; -import thirdParty from "./thirdParty.vue"; -import { getAuthList } from "@/api/system/social/auth"; import { getUserProfile } from "@/api/system/user"; const activeTab = ref("userinfo"); -const state = ref<{ user: any; roleGroup: string; postGroup: string; auths:any[]}>({ +const state = ref<{ user: any; roleGroup: string; postGroup: string}>({ user: {}, roleGroup: '', - postGroup: '', - auths: [], + postGroup: '' }); const userForm = ref({}); @@ -91,13 +85,7 @@ state.value.postGroup = res.data.postGroup; }; -const getAuths = async () => { - const res = await getAuthList(); - state.value.auths = res.data; -}; - onMounted(() => { getUser(); - getAuths(); }) </script> -- Gitblit v1.9.3