fix: --bug=1007703 --user=刘瑞斌 【接口测试】场景批量执行后站内信收到了2次 https://www.tapd.cn/55049933/s/1064052

This commit is contained in:
CaptainB 2021-11-04 14:18:48 +08:00 committed by 刘瑞斌
parent 60e5a52880
commit 1800a03e4c
1 changed files with 6 additions and 1 deletions

View File

@ -10,7 +10,7 @@
<template v-slot:content>
<span>{{ $t('commons.notice_center') }}</span>
</template>
<div @click="showNoticeCenter" v-if="noticeCount > 0">
<div @click="showNoticeCenter" v-if="noticeCount > 0 || noticeShow">
<el-badge is-dot class="item" type="danger">
<font-awesome-icon class="icon global focusing" :icon="['fas', 'bell']"/>
</el-badge>
@ -78,6 +78,7 @@ export default {
goPage: 1,
totalPage: 0,
totalCount: 0,
noticeShow: false,
};
},
props: {
@ -151,6 +152,7 @@ export default {
},
readAll() {
this.$get('/notification/read/all');
this.noticeShow = false;
},
getNotifications() {
this.initWebSocket();
@ -172,6 +174,9 @@ export default {
type: 'info',
message: message,
});
//
this.$get('/notification/read/' + d.id);
this.noticeShow = true;
});
});
});