完善新建作业流程
This commit is contained in:
@@ -25,6 +25,7 @@ const actions = {
|
||||
if ((websock && isConnect) || !rootState.user.token) {
|
||||
return
|
||||
}
|
||||
console.log(process.env.VUE_APP_SOCKET_API)
|
||||
websock = new WebSocket(process.env.VUE_APP_SOCKET_API)
|
||||
websock.onmessage = function (res) {
|
||||
dispatch('websocketonmessage', res)
|
||||
@@ -112,8 +113,8 @@ const actions = {
|
||||
dispatch('initWebSocket')
|
||||
}, 5000)
|
||||
} else {
|
||||
state.reconnections = 0
|
||||
dispatch('initWebSocket')
|
||||
// state.reconnections = 0
|
||||
// dispatch('initWebSocket')
|
||||
// MessageBox.alert('服务器启动异常,请刷新重试', '温馨提示', {
|
||||
// confirmButtonText: '刷新',
|
||||
// showCancelButton: true
|
||||
|
||||
Reference in New Issue
Block a user