File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
layout/components/Message Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ export function getUnreadNotifyMessageList() {
43
43
} )
44
44
}
45
45
46
+ // 获得当前用户的未读站内信数量
46
47
export function getUnreadNotifyMessageCount ( ) {
47
48
return request ( {
48
49
url : '/system/notify-message/get-unread-count' ,
Original file line number Diff line number Diff line change 9
9
<!-- 弹出列表 -->
10
10
<el-table v-loading =" loading" :data =" list" >
11
11
<el-table-column width =" 120" property =" templateNickname" label =" 发送人" />
12
- <el-table-column width =" 180" property =" title " label =" 发送时间" >
12
+ <el-table-column width =" 180" property =" createTime " label =" 发送时间" >
13
13
<template slot-scope="scope">
14
14
<span >{{ parseTime(scope.row.createTime) }}</span >
15
15
</template >
@@ -49,7 +49,7 @@ export default {
49
49
// 首次加载小红点
50
50
this .getUnreadCount ()
51
51
// 轮询刷新小红点
52
- window . timer = setInterval (()=> {
52
+ setInterval (() => {
53
53
this .getUnreadCount ()
54
54
},1000 * 60 * 2 )
55
55
},
You can’t perform that action at this time.
0 commit comments