diff --git a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningOrganization.vue b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningOrganization.vue index c644451..b39db67 100644 --- a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningOrganization.vue +++ b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningOrganization.vue @@ -68,7 +68,8 @@ import { onMounted, ref } from 'vue'; import EarlyWarningDetail from '@/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue'; import NoData from '@/components/NoData/NoData.vue'; import { getgroupNoticeList, getNoticeList } from '@/api/jyh'; - +import { useAccountStore } from '@/stores/user'; +const account = useAccountStore(); const tableData = ref([ // { code: '05822156', name: 'MIT License', detail: 'integer', level: 4, status: 1 }, // { code: '05822156', name: 'MIT License', detail: 'integer', level: 3, status: 2 }, @@ -83,6 +84,7 @@ const pager = ref({ const warningModalVisable = ref(false); const currentWarning = ref(); const openWarningDetail = (row) => { + account.checkIsLogin(); warningModalVisable.value = true; currentWarning.value = JSON.parse(row.alertMsg ?? '{}'); }; diff --git a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningPerson.vue b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningPerson.vue index 5b49ba4..6eb6ab5 100644 --- a/src/views/Jyh/PersonalCenter/Detail/EarlyWarningPerson.vue +++ b/src/views/Jyh/PersonalCenter/Detail/EarlyWarningPerson.vue @@ -64,7 +64,8 @@ import { onMounted, ref } from 'vue'; import EarlyWarningDetail from '@/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue'; import NoData from '@/components/NoData/NoData.vue'; import { getNoticeList } from '@/api/jyh'; - +import { useAccountStore } from '@/stores/user'; +const account = useAccountStore(); const tableData = ref([ // { code: '05822156', name: 'MIT License', detail: 'integer', level: 4, status: 1 }, // { code: '05822156', name: 'MIT License', detail: 'integer', level: 3, status: 2 }, @@ -79,6 +80,7 @@ const pager = ref({ const warningModalVisable = ref(false); const currentWarning = ref(); const openWarningDetail = (row) => { + account.checkIsLogin(); warningModalVisable.value = true; currentWarning.value = JSON.parse(row.alertMsg ?? '{}'); }; diff --git a/src/views/Jyh/PersonalCenter/Detail/InvitationNoticeList.vue b/src/views/Jyh/PersonalCenter/Detail/InvitationNoticeList.vue index 74ff0c1..8063f94 100644 --- a/src/views/Jyh/PersonalCenter/Detail/InvitationNoticeList.vue +++ b/src/views/Jyh/PersonalCenter/Detail/InvitationNoticeList.vue @@ -41,6 +41,8 @@ import { ref, shallowReactive } from 'vue'; import NoData from '@/components/NoData/NoData.vue'; import { Message } from 'vue-devui'; import dayjs from 'dayjs'; +import { useAccountStore } from '@/stores/user'; +const account = useAccountStore(); const noticeTableData = ref([]); const pager = shallowReactive({ @@ -83,6 +85,7 @@ const handleAccept = async (row, type) => { message: '已拒绝' }); } + await account.checkIsLogin(); queryInviteListData(); } else { Message({