fix: 客户端无法编辑office文件
This commit is contained in:
parent
81132ecab0
commit
9a66c38e01
2
electron/electron.js
vendored
2
electron/electron.js
vendored
@ -72,7 +72,6 @@ function createMainWindow() {
|
|||||||
preload: path.join(__dirname, 'electron-preload.js'),
|
preload: path.join(__dirname, 'electron-preload.js'),
|
||||||
webSecurity: true,
|
webSecurity: true,
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
nodeIntegrationInSubFrames: true,
|
|
||||||
contextIsolation: true,
|
contextIsolation: true,
|
||||||
nativeWindowOpen: true
|
nativeWindowOpen: true
|
||||||
}
|
}
|
||||||
@ -145,7 +144,6 @@ function createSubWindow(args) {
|
|||||||
preload: path.join(__dirname, 'electron-preload.js'),
|
preload: path.join(__dirname, 'electron-preload.js'),
|
||||||
webSecurity: true,
|
webSecurity: true,
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
nodeIntegrationInSubFrames: true,
|
|
||||||
contextIsolation: true,
|
contextIsolation: true,
|
||||||
nativeWindowOpen: true
|
nativeWindowOpen: true
|
||||||
}, webPreferences),
|
}, webPreferences),
|
||||||
|
@ -865,7 +865,10 @@ export default {
|
|||||||
parent: null,
|
parent: null,
|
||||||
width: Math.min(window.screen.availWidth, 1440),
|
width: Math.min(window.screen.availWidth, 1440),
|
||||||
height: Math.min(window.screen.availHeight, 900),
|
height: Math.min(window.screen.availHeight, 900),
|
||||||
}
|
},
|
||||||
|
webPreferences: {
|
||||||
|
nodeIntegrationInSubFrames: item.type === 'drawio'
|
||||||
|
},
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user