From 72e42d6830494edaf33dc86f68aeae68eb00bd20 Mon Sep 17 00:00:00 2001 From: lc18518571399 <18518571399@163.com> Date: Sun, 19 May 2024 21:05:16 +0800 Subject: [PATCH] update --- front/electron-builder.yml | 2 +- front/src/main/index.js | 11 +++++---- front/src/renderer/index.html | 2 +- front/src/renderer/src/App.vue | 43 +++++++++++++++++++++++++++++----- 4 files changed, 45 insertions(+), 13 deletions(-) diff --git a/front/electron-builder.yml b/front/electron-builder.yml index 49ac237..6e218a0 100644 --- a/front/electron-builder.yml +++ b/front/electron-builder.yml @@ -1,5 +1,5 @@ appId: com.electron.lichong -productName: 桌面应用 +productName: 时光机 directories: buildResources: build files: diff --git a/front/src/main/index.js b/front/src/main/index.js index 3c43783..499d723 100644 --- a/front/src/main/index.js +++ b/front/src/main/index.js @@ -9,16 +9,17 @@ console.log(process.versions.node) let mainWindow function createWindow() { mainWindow = new BrowserWindow({ - // fullscreen: true, - // fullscreenable: true, - minWidth: 432, - minHeight: 768, + fullscreen: true, + fullscreenable: true, + // minWidth: 432, + // minHeight: 768, show: false, autoHideMenuBar: true, icon: logoIcon, webPreferences: { preload: path.resolve(__dirname, '../preload/index.js'), - sandbox: false + sandbox: false, + webSecurity:false, } }) mainWindow.on('ready-to-show', () => { diff --git a/front/src/renderer/index.html b/front/src/renderer/index.html index 6e808cb..c1cb9b1 100644 --- a/front/src/renderer/index.html +++ b/front/src/renderer/index.html @@ -7,7 +7,7 @@ diff --git a/front/src/renderer/src/App.vue b/front/src/renderer/src/App.vue index 3455254..19ad3fb 100644 --- a/front/src/renderer/src/App.vue +++ b/front/src/renderer/src/App.vue @@ -39,8 +39,21 @@ +