回退 'Pull Request !20 : 统一登录授权'

This commit is contained in:
疯狂的狮子Li
2023-07-02 07:32:58 +00:00
committed by Gitee
parent a8f575fe6f
commit 3fb8f1c251
22 changed files with 96 additions and 992 deletions

View File

@@ -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 @@ const getUser = async () => {
state.value.postGroup = res.data.postGroup;
};
const getAuths = async () => {
const res = await getAuthList();
state.value.auths = res.data;
};
onMounted(() => {
getUser();
getAuths();
})
</script>