|
@@ -66,6 +66,7 @@
|
|
|
import {ExclamationCircleOutlined, FolderOutlined} from '@ant-design/icons-vue'
|
|
import {ExclamationCircleOutlined, FolderOutlined} from '@ant-design/icons-vue'
|
|
|
import { Modal } from 'ant-design-vue'
|
|
import { Modal } from 'ant-design-vue'
|
|
|
import loginApi from '@/api/auth/loginApi'
|
|
import loginApi from '@/api/auth/loginApi'
|
|
|
|
|
+ import { getCount } from '@/api/portal'
|
|
|
import { message } from 'ant-design-vue'
|
|
import { message } from 'ant-design-vue'
|
|
|
import { ref } from 'vue'
|
|
import { ref } from 'vue'
|
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
import { useRouter, useRoute } from 'vue-router'
|
|
@@ -162,14 +163,17 @@
|
|
|
const currentPath = window.location.pathname;
|
|
const currentPath = window.location.pathname;
|
|
|
console.log('当前路径',' currentPath ',currentPath)
|
|
console.log('当前路径',' currentPath ',currentPath)
|
|
|
if(currentPath != '/tlogin' && currentPath != '/jump'){
|
|
if(currentPath != '/tlogin' && currentPath != '/jump'){
|
|
|
- //站内信
|
|
|
|
|
- let funcType1 = await getCount({funcType : 1})
|
|
|
|
|
- console.log('获取未读数量 站内信',funcType1)
|
|
|
|
|
- let funcType2 = await getCount({funcType : 2})
|
|
|
|
|
- console.log('获取未读数量 公告',funcType2)
|
|
|
|
|
- myMsgCount.value = funcType1.data.unreadCount
|
|
|
|
|
- announcementLookManagementCount.value = funcType2.data.unreadCount
|
|
|
|
|
- allCount.value = funcType1.data.unreadCount+ funcType2.data.unreadCount
|
|
|
|
|
|
|
+ if(tool.data.get('TOKEN')){
|
|
|
|
|
+ //站内信
|
|
|
|
|
+ let funcType1 = await getCount({funcType : 1})
|
|
|
|
|
+ console.log('获取未读数量 站内信',funcType1)
|
|
|
|
|
+ let funcType2 = await getCount({funcType : 2})
|
|
|
|
|
+ console.log('获取未读数量 公告',funcType2)
|
|
|
|
|
+ myMsgCount.value = funcType1.data.unreadCount
|
|
|
|
|
+ announcementLookManagementCount.value = funcType2.data.unreadCount
|
|
|
|
|
+ allCount.value = funcType1.data.unreadCount+ funcType2.data.unreadCount
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|