From 3c3e391f33b7b8103ee3e5bbcd07a8b6b7b8c1ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Thu, 3 Apr 2025 17:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AF=E4=BF=A1=E4=BB=A3=E7=A0=81=E5=BA=93-?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E8=AE=BE=E7=BD=AE=E4=B8=AD=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=88=B7=E6=96=B0=E4=B8=AA=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Detail/InvitationNotice/InvitationHistoryList.vue | 5 ++++- .../Detail/InvitationNotice/InvitationNoticeList.vue | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/Jyh/PersonalCenter/Detail/InvitationNotice/InvitationHistoryList.vue b/src/views/Jyh/PersonalCenter/Detail/InvitationNotice/InvitationHistoryList.vue index ac88e63..4d70478 100644 --- a/src/views/Jyh/PersonalCenter/Detail/InvitationNotice/InvitationHistoryList.vue +++ b/src/views/Jyh/PersonalCenter/Detail/InvitationNotice/InvitationHistoryList.vue @@ -83,7 +83,10 @@ const handleDelete = async (row) => { type: 'success', message: '成功删除' }); - await account.checkIsLogin(); + let access_token = localStorage.getItem('access_token') || ''; + let refresh_token = localStorage.getItem('refresh_token') || ''; + // 如果是从blog跳转过来的判断是否登陆,如果登陆则写入storage + await account.checkIsLogin(access_token,refresh_token); queryInviteListData(); } else { Message({ diff --git a/src/views/Jyh/PersonalCenter/Detail/InvitationNotice/InvitationNoticeList.vue b/src/views/Jyh/PersonalCenter/Detail/InvitationNotice/InvitationNoticeList.vue index 1eda972..39fdf8f 100644 --- a/src/views/Jyh/PersonalCenter/Detail/InvitationNotice/InvitationNoticeList.vue +++ b/src/views/Jyh/PersonalCenter/Detail/InvitationNotice/InvitationNoticeList.vue @@ -77,6 +77,10 @@ const handleAccept = async (row, type) => { groupId: row.groupId, status: type }); + let access_token = localStorage.getItem('access_token') || ''; + let refresh_token = localStorage.getItem('refresh_token') || ''; + // 如果是从blog跳转过来的判断是否登陆,如果登陆则写入storage + await account.checkIsLogin(access_token,refresh_token); if (data?.data?.data?.data) { if(type===1) { Message({ @@ -89,7 +93,6 @@ const handleAccept = async (row, type) => { message: '已拒绝' }); } - await account.checkIsLogin(); queryInviteListData(); emit('refresh'); } else {