Commit 4c9f8da7 authored by yanzhongrong's avatar yanzhongrong

bugfix

parent cbefbc50
......@@ -105,5 +105,5 @@
.el-scrollbar__wrap {
overflow: scroll;
width: 110%;
height: 120%;
height: 100%;
}
\ No newline at end of file
......@@ -64,6 +64,7 @@ service.interceptors.response.use(
if(code) {
if (code == 201) {
location.href = location.href.replace(/#.+/, '') + '#/login'
EventBus.$emit('cancelWS')
return
}
if (code == 501) {
......@@ -71,6 +72,7 @@ service.interceptors.response.use(
errorShowing = true
setTimeout(() => { errorShowing = false }, 3000)
store.dispatch('user/resetToken')
EventBus.$emit('cancelWS')
location.href = location.href.replace(/#.+/, '') + '#/login'
return
}
......
......@@ -8,7 +8,7 @@ export default function socket(handlerOptions) {
onopen,
// socketUrl
} = handlerOptions
let socketUrl = 'ws://8.142.143.40:8885/websocket/1/1'
let socketUrl = 'ws://8.142.143.40:8885/websocket/1'
let websocket
if ("WebSocket" in window) {
websocket = new WebSocket(socketUrl)
......
......@@ -29,7 +29,7 @@ export default {
computed: {
},
mounted() {
this.getDetailNode(4)
this.getDetailNode(26)
},
methods: {
selectItem(data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment