兰宝车间质量管理系统-前端
疯狂的狮子Li
2025-01-20 bbe94610a28e72414df1fb2b36a6d11385873e54
src/views/system/user/profile/thirdParty.vue
@@ -58,7 +58,7 @@
<script lang="ts" setup>
import { authUnlock, authBinding } from '@/api/system/social/auth';
import { propTypes } from '@/utils/propTypes';
import useUserStore from "@/store/modules/user";
import useUserStore from '@/store/modules/user';
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -84,9 +84,9 @@
};
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 + '&tenantId=' + useUserStore().tenantId + '&domain=' + window.location.host;
      window.location.href = res.data;
    } else {
      proxy?.$modal.msgError(res.msg);
    }