|
|
@@ -77,11 +77,13 @@ if (window.performance.navigation.type == 1) {
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
let allowSound = localStorage.getItem('allowSound')
|
|
|
// 不是登录页才进行消息推送
|
|
|
- if(to.fullPath !== '/login' || !to.path.includes('/login')){
|
|
|
- PushMessage.openWebSocket()
|
|
|
- if(allowSound && allowSound == 'false'){
|
|
|
- PushMessage.messageModal()
|
|
|
- }
|
|
|
+ if(to.fullPath !== '/login' || !to.path.includes('login')){
|
|
|
+ if(to.path !== '/samlLogin'){
|
|
|
+ PushMessage.openWebSocket()
|
|
|
+ if(allowSound && allowSound == 'false'){
|
|
|
+ PushMessage.messageModal()
|
|
|
+ }
|
|
|
+ }
|
|
|
} else {
|
|
|
PushMessage.closeWebsocket()
|
|
|
}
|