完善新建作业流程

This commit is contained in:
24kycj
2024-11-07 21:50:06 +08:00
parent ca1a2e11b5
commit 2384fcf7f1
18 changed files with 1585 additions and 341 deletions
+3 -2
View File
@@ -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