diff --git a/electron/electron.js b/electron/electron.js index 1f785b9b8..b5bc9d81a 100644 --- a/electron/electron.js +++ b/electron/electron.js @@ -452,10 +452,6 @@ ipcMain.on('updateCheckAndDownload', (event, args) => { ipcMain.on('updateQuitAndInstall', (event) => { event.returnValue = "ok" willQuitApp = true - if(process.platform == 'darwin'){ - // Mac 触发升级时跳动Dock图标 - app.dock.bounce('critical'); - } setTimeout(() => autoUpdater.quitAndInstall(true, true), 1) }) diff --git a/resources/assets/js/pages/manage/components/DialogView.vue b/resources/assets/js/pages/manage/components/DialogView.vue index 74b70c847..5944e3d64 100644 --- a/resources/assets/js/pages/manage/components/DialogView.vue +++ b/resources/assets/js/pages/manage/components/DialogView.vue @@ -409,11 +409,11 @@ export default { this.viewPicture(msg.path); return } - const uri = `/single/file/msg/${this.msgData.id}`; + const path = `/single/file/msg/${this.msgData.id}`; if (this.$Electron) { this.$Electron.sendMessage('windowRouter', { name: `file-msg-${this.msgData.id}`, - path: uri, + path: path, userAgent: "/hideenOfficeTitle/", force: false, config: { @@ -422,7 +422,10 @@ export default { parent: null, width: Math.min(window.screen.availWidth, 1440), height: Math.min(window.screen.availHeight, 900), - } + }, + webPreferences: { + nodeIntegrationInSubFrames: msg.ext === 'drawio' + }, }); } else if (this.$isEEUiApp) { $A.eeuiAppOpenPage({ @@ -431,11 +434,11 @@ export default { url: 'web.js', params: { titleFixed: true, - url: $A.rightDelete(window.location.href, window.location.hash) + `#${uri}` + url: $A.rightDelete(window.location.href, window.location.hash) + `#${path}` }, }); } else { - window.open($A.apiUrl(`..${uri}`)) + window.open($A.apiUrl(`..${path}`)) } }, diff --git a/resources/assets/js/pages/manage/components/FileContent.vue b/resources/assets/js/pages/manage/components/FileContent.vue index 13cdd2521..f4c2207ca 100644 --- a/resources/assets/js/pages/manage/components/FileContent.vue +++ b/resources/assets/js/pages/manage/components/FileContent.vue @@ -1,7 +1,7 @@