diff --git a/.env.production b/.env.production index 05e26a6..e103054 100644 --- a/.env.production +++ b/.env.production @@ -18,4 +18,4 @@ VITE_APP_RES_FILE_PATH = 'https://prev.ysaix.com:7868/src/assets/textbook/booktx VITE_APP_BUILD_BASE_PATH = 'https://prev.ysaix.com:7868/' -VITE_SHOW_DEV_TOOLS = 'true' +VITE_SHOW_DEV_TOOLS = 'false' diff --git a/package.json b/package.json index 9e2f9f6..0b92a4d 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,9 @@ { "name": "aix-win", - "version": "2.1.14", + "version": "2.1.18", "description": "", "main": "./out/main/index.js", - "author": "example.com", + "author": "上海交大重庆人工智能研究院", "homepage": "https://electron-vite.org", "scripts": { "format": "prettier --write .", diff --git a/src/main/index.js b/src/main/index.js index 87a0ef1..f874b6b 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -271,12 +271,13 @@ app.on('window-all-closed', () => { function handleAll() { const chatInstance = chat.initialize() // im-chat 实例 // 新窗口创建-监听 - ipcMain.on('new-window', (e, data) => { + ipcMain.handle('new-window', (e, data) => { const { id, type } = data const win = BrowserWindow.fromId(id) win.type = type // 绑定独立标识 remote.enable(win.webContents) // 开启远程服务 chatInstance.enable(win.webContents) // 开启im-chat + console.log(`主进程 [${type}]: 窗口注册-远程代理-完毕(${Date.now()})`) }) // 用于监听-状态管理变化-同步所有窗口 ipcMain.handle('pinia-state-change', (e, storeName, jsonStr) => { diff --git a/src/renderer/src/layout/components/Header.vue b/src/renderer/src/layout/components/Header.vue index 6b3e875..a01a158 100644 --- a/src/renderer/src/layout/components/Header.vue +++ b/src/renderer/src/layout/components/Header.vue @@ -33,7 +33,7 @@