可信代码库-消息图标反应迟钝,查看了通知之后,一直不消失,要刷新才会消失
This commit is contained in:
@@ -68,7 +68,8 @@ import { onMounted, ref } from 'vue';
|
|||||||
import EarlyWarningDetail from '@/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue';
|
import EarlyWarningDetail from '@/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue';
|
||||||
import NoData from '@/components/NoData/NoData.vue';
|
import NoData from '@/components/NoData/NoData.vue';
|
||||||
import { getgroupNoticeList, getNoticeList } from '@/api/jyh';
|
import { getgroupNoticeList, getNoticeList } from '@/api/jyh';
|
||||||
|
import { useAccountStore } from '@/stores/user';
|
||||||
|
const account = useAccountStore();
|
||||||
const tableData = ref([
|
const tableData = ref([
|
||||||
// { code: '05822156', name: 'MIT License', detail: 'integer', level: 4, status: 1 },
|
// { code: '05822156', name: 'MIT License', detail: 'integer', level: 4, status: 1 },
|
||||||
// { code: '05822156', name: 'MIT License', detail: 'integer', level: 3, status: 2 },
|
// { code: '05822156', name: 'MIT License', detail: 'integer', level: 3, status: 2 },
|
||||||
@@ -83,6 +84,7 @@ const pager = ref({
|
|||||||
const warningModalVisable = ref(false);
|
const warningModalVisable = ref(false);
|
||||||
const currentWarning = ref();
|
const currentWarning = ref();
|
||||||
const openWarningDetail = (row) => {
|
const openWarningDetail = (row) => {
|
||||||
|
account.checkIsLogin();
|
||||||
warningModalVisable.value = true;
|
warningModalVisable.value = true;
|
||||||
currentWarning.value = JSON.parse(row.alertMsg ?? '{}');
|
currentWarning.value = JSON.parse(row.alertMsg ?? '{}');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -64,7 +64,8 @@ import { onMounted, ref } from 'vue';
|
|||||||
import EarlyWarningDetail from '@/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue';
|
import EarlyWarningDetail from '@/views/Jyh/PersonalCenter/Detail/EarlyWarningDetail.vue';
|
||||||
import NoData from '@/components/NoData/NoData.vue';
|
import NoData from '@/components/NoData/NoData.vue';
|
||||||
import { getNoticeList } from '@/api/jyh';
|
import { getNoticeList } from '@/api/jyh';
|
||||||
|
import { useAccountStore } from '@/stores/user';
|
||||||
|
const account = useAccountStore();
|
||||||
const tableData = ref([
|
const tableData = ref([
|
||||||
// { code: '05822156', name: 'MIT License', detail: 'integer', level: 4, status: 1 },
|
// { code: '05822156', name: 'MIT License', detail: 'integer', level: 4, status: 1 },
|
||||||
// { code: '05822156', name: 'MIT License', detail: 'integer', level: 3, status: 2 },
|
// { code: '05822156', name: 'MIT License', detail: 'integer', level: 3, status: 2 },
|
||||||
@@ -79,6 +80,7 @@ const pager = ref({
|
|||||||
const warningModalVisable = ref(false);
|
const warningModalVisable = ref(false);
|
||||||
const currentWarning = ref();
|
const currentWarning = ref();
|
||||||
const openWarningDetail = (row) => {
|
const openWarningDetail = (row) => {
|
||||||
|
account.checkIsLogin();
|
||||||
warningModalVisable.value = true;
|
warningModalVisable.value = true;
|
||||||
currentWarning.value = JSON.parse(row.alertMsg ?? '{}');
|
currentWarning.value = JSON.parse(row.alertMsg ?? '{}');
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -41,6 +41,8 @@ import { ref, shallowReactive } from 'vue';
|
|||||||
import NoData from '@/components/NoData/NoData.vue';
|
import NoData from '@/components/NoData/NoData.vue';
|
||||||
import { Message } from 'vue-devui';
|
import { Message } from 'vue-devui';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
|
import { useAccountStore } from '@/stores/user';
|
||||||
|
const account = useAccountStore();
|
||||||
|
|
||||||
const noticeTableData = ref([]);
|
const noticeTableData = ref([]);
|
||||||
const pager = shallowReactive({
|
const pager = shallowReactive({
|
||||||
@@ -83,6 +85,7 @@ const handleAccept = async (row, type) => {
|
|||||||
message: '已拒绝'
|
message: '已拒绝'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
await account.checkIsLogin();
|
||||||
queryInviteListData();
|
queryInviteListData();
|
||||||
} else {
|
} else {
|
||||||
Message({
|
Message({
|
||||||
|
|||||||
Reference in New Issue
Block a user