diff --git a/electron.vite.config.mjs b/electron.vite.config.mjs index c48cc00..9b9c503 100644 --- a/electron.vite.config.mjs +++ b/electron.vite.config.mjs @@ -24,8 +24,8 @@ export default defineConfig({ server: { proxy: { '/dev-api': { - target: 'http://27.128.240.72:7865', - // target: 'http://192.168.2.52:7863', + // target: 'http://27.128.240.72:7865', + target: 'http://192.168.2.52:7863', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') } diff --git a/resources/logo3.ico b/resources/logo3.ico new file mode 100644 index 0000000..6bf1e56 Binary files /dev/null and b/resources/logo3.ico differ diff --git a/src/main/index.js b/src/main/index.js index cd543a7..2178fb3 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -23,12 +23,15 @@ function createLoginWindow() { show: false, frame: false, autoHideMenuBar: true, + maximizable: false, + resizable: false, icon: join(__dirname, '../../resources/logo2.ico'), ...(process.platform === 'linux' ? { icon } : {}), webPreferences: { preload: join(__dirname, '../preload/index.js'), sandbox: false, - nodeIntegration: true + nodeIntegration: true, + contextIsolation: false, // 沙箱取消 } }) loginWindow.type = 'login' // 唯一标识 @@ -46,10 +49,12 @@ function createLoginWindow() { loginWindow.once('ready-to-show', () => { loginWindow.show() }) - + loginWindow.on('closed', () => { loginWindow = null }) + + remote.enable(loginWindow.webContents) } //主窗口 function createMainWindow() { diff --git a/src/renderer/src/views/login/index.vue b/src/renderer/src/views/login/index.vue index c8be982..3077b89 100644 --- a/src/renderer/src/views/login/index.vue +++ b/src/renderer/src/views/login/index.vue @@ -7,31 +7,24 @@