|
@ -12,6 +12,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { userNotifyNotReadList, userNotifyHasRead, userNotifyMessageNotReadList, userNotifyMessageUpdate, notifyMessage, getPageList } from "@/api/wms-api" |
|
|
import { userNotifyNotReadList, userNotifyHasRead, userNotifyMessageNotReadList, userNotifyMessageUpdate, notifyMessage, getPageList } from "@/api/wms-api" |
|
|
import dialogIndex from "@/components/News/dialogIndex" |
|
|
import dialogIndex from "@/components/News/dialogIndex" |
|
|
|
|
|
import { updateVersion } from '@/utils/upDateVersion' |
|
|
export default { |
|
|
export default { |
|
|
name: 'News', |
|
|
name: 'News', |
|
|
data() { |
|
|
data() { |
|
@ -27,12 +28,16 @@ export default { |
|
|
this.userId = this.$store.getters.name.id |
|
|
this.userId = this.$store.getters.name.id |
|
|
this.getNoReadCount(this.userId) |
|
|
this.getNoReadCount(this.userId) |
|
|
this.getSetInterval() |
|
|
this.getSetInterval() |
|
|
|
|
|
// 检测版本是否有更新 |
|
|
|
|
|
updateVersion() |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
getSetInterval() { |
|
|
getSetInterval() { |
|
|
let that = this |
|
|
let that = this |
|
|
setInterval(function () { |
|
|
setInterval(function () { |
|
|
that.getNoReadCount(that.userId) |
|
|
that.getNoReadCount(that.userId) |
|
|
|
|
|
// 检测版本是否有更新 |
|
|
|
|
|
updateVersion() |
|
|
},120000) |
|
|
},120000) |
|
|
}, |
|
|
}, |
|
|
getNoReadCount(userId) { |
|
|
getNoReadCount(userId) { |
|
|