diff --git a/mayfly_go_web/package.json b/mayfly_go_web/package.json index d1e74208..4f0de2a2 100644 --- a/mayfly_go_web/package.json +++ b/mayfly_go_web/package.json @@ -11,10 +11,10 @@ "dependencies": { "@element-plus/icons-vue": "^2.1.0", "asciinema-player": "^3.6.2", - "axios": "^1.5.0", + "axios": "^1.5.1", "countup.js": "^2.7.0", "cropperjs": "^1.5.11", - "echarts": "^5.4.0", + "echarts": "^5.4.3", "element-plus": "^2.4.1", "jsencrypt": "^3.3.1", "lodash": "^4.17.21", @@ -29,7 +29,7 @@ "sortablejs": "^1.15.0", "sql-formatter": "^12.1.2", "uuid": "^9.0.1", - "vue": "^3.3.4", + "vue": "^3.3.5", "vue-clipboard3": "^1.0.1", "vue-router": "^4.2.5", "xterm": "^5.3.0", @@ -48,11 +48,11 @@ "@vue/compiler-sfc": "^3.3.4", "dotenv": "^16.3.1", "eslint": "^8.35.0", - "eslint-plugin-vue": "^8.2.0", - "prettier": "^2.3.0", + "eslint-plugin-vue": "^9.17.0", + "prettier": "^3.0.3", "sass": "^1.69.0", "typescript": "^5.0.2", - "vite": "^4.4.11", + "vite": "^4.5.0", "vue-eslint-parser": "^9.3.1" }, "browserslist": [ diff --git a/mayfly_go_web/src/common/syssocket.ts b/mayfly_go_web/src/common/syssocket.ts index 504b2762..c925a6bb 100644 --- a/mayfly_go_web/src/common/syssocket.ts +++ b/mayfly_go_web/src/common/syssocket.ts @@ -37,7 +37,7 @@ class SysSocket { if (!token) { return null; } - + console.log('init system ws'); const sysMsgUrl = `${Config.baseWsUrl}/sysmsg?${joinClientParams()}`; this.socket = SocketBuilder.builder(sysMsgUrl) .message((event: { data: string }) => { @@ -78,6 +78,7 @@ class SysSocket { * @param handlerFunc 消息处理函数 */ registerMsgHandler(category: any, handlerFunc: any) { + this.init(); if (this.categoryHandlers.has(category)) { console.log(`${category}该类别消息处理器已存在...`); return; diff --git a/mayfly_go_web/src/views/ops/db/component/SqlExecDialog.vue b/mayfly_go_web/src/views/ops/db/component/SqlExecDialog.vue index 297def11..61ad68fe 100644 --- a/mayfly_go_web/src/views/ops/db/component/SqlExecDialog.vue +++ b/mayfly_go_web/src/views/ops/db/component/SqlExecDialog.vue @@ -2,7 +2,7 @@