|
@@ -80,9 +80,9 @@ import { mapGetters } from 'vuex'
|
|
|
import TheDrawer from './components/bellDrawer.vue'
|
|
|
// import cloneDeep from 'lodash/cloneDeep'
|
|
|
import MKnowledge from '@/components/Knowledge'
|
|
|
-import {
|
|
|
- getMessageList
|
|
|
-} from '@/api/system'
|
|
|
+// import {
|
|
|
+// getMessageList
|
|
|
+// } from '@/api/system'
|
|
|
const showAI = [
|
|
|
'/data-book/data-metadata',
|
|
|
'/data-book/data-resource',
|
|
@@ -158,13 +158,13 @@ export default {
|
|
|
this.showChip = show
|
|
|
})
|
|
|
|
|
|
- this.getMessageUnRead()
|
|
|
- if (this.timer) {
|
|
|
- clearInterval(this.timer)
|
|
|
- }
|
|
|
- this.timer = setInterval(() => {
|
|
|
- this.getMessageUnRead()
|
|
|
- }, 10000)
|
|
|
+ // this.getMessageUnRead()
|
|
|
+ // if (this.timer) {
|
|
|
+ // clearInterval(this.timer)
|
|
|
+ // }
|
|
|
+ // this.timer = setInterval(() => {
|
|
|
+ // this.getMessageUnRead()
|
|
|
+ // }, 10000)
|
|
|
},
|
|
|
mounted () {
|
|
|
if (!this.$refs.body) return
|
|
@@ -215,16 +215,16 @@ export default {
|
|
|
},
|
|
|
handleClickModules () {
|
|
|
this.$emit('$HANDLE_EDIT_MODULES')
|
|
|
- },
|
|
|
- // 查询是否存在未读消息
|
|
|
- async getMessageUnRead () {
|
|
|
- try {
|
|
|
- const { data } = await getMessageList({ readState: 0, userId: this.userInfo.id })
|
|
|
- this.bellMessage = data.total > 0
|
|
|
- } catch (error) {
|
|
|
- this.$snackbar.error(error)
|
|
|
- }
|
|
|
}
|
|
|
+ // 查询是否存在未读消息
|
|
|
+ // async getMessageUnRead () {
|
|
|
+ // try {
|
|
|
+ // const { data } = await getMessageList({ readState: 0, userId: this.userInfo.id })
|
|
|
+ // this.bellMessage = data.total > 0
|
|
|
+ // } catch (error) {
|
|
|
+ // this.$snackbar.error(error)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
</script>
|