From c36bb00e3a72aad5ba55aaf8158037218be3412e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Fri, 28 Mar 2025 10:11:47 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=80=E8=AF=B7=E6=88=90=E5=91=98=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=99=BB=E5=BD=95=E8=BF=87=E5=8E=BB=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E7=BC=93=E5=AD=98=E7=9A=84=E7=99=BB=E5=BD=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OrganizationManage/OrganizationManage.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/views/Jyh/PersonalCenter/OrganizationManage/OrganizationManage.vue b/src/views/Jyh/PersonalCenter/OrganizationManage/OrganizationManage.vue index 2004185..6caeb09 100644 --- a/src/views/Jyh/PersonalCenter/OrganizationManage/OrganizationManage.vue +++ b/src/views/Jyh/PersonalCenter/OrganizationManage/OrganizationManage.vue @@ -145,6 +145,7 @@ import { import {getUserInfo} from "@/api/user"; import dayjs from "dayjs"; import debounce from 'lodash/debounce'; +import { useAccount } from '@/utils/hooks/useAccount'; const userInfo = shallowRef({ username: '', @@ -207,6 +208,9 @@ const memberRoleMap = { [OrganizationMemberRoleEnum.MEMBER]: '成员' }; + +const { accountInfo, RemoveInfo } = useAccount(); + init(); function init() { queryUserInfo(); @@ -246,6 +250,7 @@ function confirmCreateOrganizationBtnClick() { } async function createOrganization() { + debugger const params = { groupName: createFormData.organizationName, groupDesc: createFormData.organizationProfile @@ -254,6 +259,9 @@ async function createOrganization() { try { const res = await createOrganizationApi(params); if (res.data?.code !== 200) { + if(res.data?.msg === '未登录') { + RemoveInfo() + } Message.error(res.data?.msg || '创建失败'); } else { closeOrganizationModal();