From e07c0b2b3aaa94dbcc72e13bfb31952abef1d3bd Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期六, 27 七月 2024 14:08:07 +0800
Subject: [PATCH] fix 修复 代码生成同步点击取消报错问题
---
src/views/system/user/profile/thirdParty.vue | 19 ++++++++++++-------
1 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/src/views/system/user/profile/thirdParty.vue b/src/views/system/user/profile/thirdParty.vue
index 7cdbea9..5cd7347 100644
--- a/src/views/system/user/profile/thirdParty.vue
+++ b/src/views/system/user/profile/thirdParty.vue
@@ -1,7 +1,7 @@
<template>
<div>
- <el-table :data="auths" style="width: 100%; height: 100%; font-size: 10px">
- <el-table-column label="搴忓彿" width="50" type="index"></el-table-column>
+ <el-table :data="auths" style="width: 100%; height: 100%; font-size: 14px">
+ <el-table-column label="搴忓彿" width="50" type="index" />
<el-table-column label="缁戝畾璐﹀彿骞冲彴" width="140" align="center" prop="source" show-overflow-tooltip />
<el-table-column label="澶村儚" width="120" align="center" prop="avatar">
<template #default="scope">
@@ -32,6 +32,12 @@
</div>
<span class="app-name">MaxKey</span>
</a>
+ <a class="third-app" href="#" title="浣跨敤 TopIam 璐﹀彿鎺堟潈鐧诲綍" @click="authUrl('topiam')">
+ <div class="git-other-login-icon">
+ <svg-icon icon-class="topiam" />
+ </div>
+ <span class="app-name">TopIam</span>
+ </a>
<a class="third-app" href="#" title="浣跨敤 Gitee 璐﹀彿鎺堟潈鐧诲綍" @click="authUrl('gitee')">
<div class="git-other-login-icon">
<svg-icon icon-class="gitee" />
@@ -51,14 +57,13 @@
<script lang="ts" setup>
import { authUnlock, authBinding } from '@/api/system/social/auth';
-import { PropType } from 'vue';
+import { propTypes } from '@/utils/propTypes';
+import useUserStore from '@/store/modules/user';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const props = defineProps({
- auths: {
- type: Object as PropType<any>
- }
+ auths: propTypes.any.isRequired
});
const auths = computed(() => props.auths);
@@ -79,7 +84,7 @@
};
const authUrl = (source: string) => {
- authBinding(source).then((res: any) => {
+ authBinding(source, useUserStore().tenantId).then((res: any) => {
if (res.code === 200) {
window.location.href = res.data;
} else {
--
Gitblit v1.9.3