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 {