fix 日志搜索控制台无法正常使用

This commit is contained in:
bwcx_jzy 2023-04-04 15:17:30 +08:00
parent 6e2addc776
commit 099bf7b0f3
No known key found for this signature in database
GPG Key ID: 5E48E9372088B9E5
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,14 @@
# 🚀 版本日志
### 2.10.40.1-beta (2023-04-04)
### 🐞 解决BUG、优化功能
1. 【server】修复 日志搜索控制台无法正常使用(感谢@左手生活,右手浪漫)
------
### 2.10.39.4-beta (2023-04-03)
### 🐞 解决BUG、优化功能

View File

@ -157,7 +157,7 @@ export default {
};
},
computed: {
...mapGetters(["getLongTermToken"]),
...mapGetters(["getLongTermToken", "getWorkspaceId"]),
selectPath() {
if (!Object.keys(this.tempNode).length) {
return "";
@ -198,7 +198,7 @@ export default {
const itemProjectData = this.nodeProjectList[item.nodeId].projects.filter((projectData) => {
return item.projectId === projectData.projectId;
})[0];
const socketUrl = getWebSocketUrl("/socket/console", `userId=${this.getLongTermToken}&id=${itemProjectData.id}&nodeId=${item.nodeId}&type=console&copyId=`);
const socketUrl = getWebSocketUrl("/socket/console", `userId=${this.getLongTermToken}&id=${itemProjectData.id}&nodeId=${item.nodeId}&type=console&copyId=&workspaceId=${this.getWorkspaceId}`);
const domId = `pre-dom-${item.nodeId},${item.projectId}`;
this.socketCache = { ...this.socketCache, [domId]: {} };
const socket = this.initWebSocket(domId, socketUrl);