diff --git a/main.js b/main.js index 0f04457..db2a312 100644 --- a/main.js +++ b/main.js @@ -316,12 +316,21 @@ app.on('ready', () => { frame: false, backgroundColor: '#00000000', transparent: true, + width: config.width, + height: config.height, }) child.loadURL(config.url) childWindow[config.key] = child child.once('ready-to-show', () => { child.show() - child.setSize(config.width, config.height) + if (config.key === 'shareScreenWindow') { + const display = screen.getDisplayMatching({ ...child.getBounds() }); + const x = Math.round((display.workArea.width - child.getSize()[0]) / 2); + child.setPosition(x, 0); + child.setResizable(false) + child.setMovable(false) + mainWindow.setPosition(-999999, -999999); + } }) }); } diff --git a/src/page/Home/User/index.tsx b/src/page/Home/User/index.tsx index 0ace807..1e9e35e 100644 --- a/src/page/Home/User/index.tsx +++ b/src/page/Home/User/index.tsx @@ -335,7 +335,7 @@ const User: React.FC = () => { }} /> : null} -
+ {isCreateUser !== 'batch' ?
角色: