|
@ -361,6 +361,7 @@ import { |
|
|
} from '@/store' |
|
|
} from '@/store' |
|
|
import socket from '@/utils/websocket' |
|
|
import socket from '@/utils/websocket' |
|
|
import Cookie from '@/utils/cookie' |
|
|
import Cookie from '@/utils/cookie' |
|
|
|
|
|
import Cookies from 'js-cookie' |
|
|
import { MessagePlugin } from 'tdesign-vue-next' |
|
|
import { MessagePlugin } from 'tdesign-vue-next' |
|
|
import { ref, onMounted, computed, onUnmounted } from 'vue' |
|
|
import { ref, onMounted, computed, onUnmounted } from 'vue' |
|
|
import Excel from 'cpns/Excel' |
|
|
import Excel from 'cpns/Excel' |
|
@ -667,6 +668,10 @@ const catCurrentTaskDetail = () => { |
|
|
|
|
|
|
|
|
onUnmounted(() => { |
|
|
onUnmounted(() => { |
|
|
websock.value.close() |
|
|
websock.value.close() |
|
|
|
|
|
accountStore?.clearLoginInfo() |
|
|
|
|
|
Cookies.remove('u') |
|
|
|
|
|
Cookies.remove('t') |
|
|
|
|
|
Cookies.remove('r') |
|
|
Cookie.clearAllCookie() |
|
|
Cookie.clearAllCookie() |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
@ -787,6 +792,9 @@ const websocketsend = data => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const websocketclose = () => { |
|
|
const websocketclose = () => { |
|
|
|
|
|
Cookies.remove('u') |
|
|
|
|
|
Cookies.remove('t') |
|
|
|
|
|
Cookies.remove('r') |
|
|
reconnect() |
|
|
reconnect() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|