diff --git a/electron/main.js b/electron/main.js index 4afe40a..2e773ea 100644 --- a/electron/main.js +++ b/electron/main.js @@ -3,12 +3,12 @@ const { // protocol, BrowserWindow, session, - // Menu, + Menu, ipcMain, dialog } = require('electron'); const path = require('path'); -const fs = require('fs'); +// const fs = require('fs'); const jschardet = require("jschardet"); const fontList = require('./nodelib/getFontList'); const b64toFile = require('./nodelib/b64toFile'); @@ -44,14 +44,8 @@ async function createWindow() { } else { // 不在开发模式时加载 index.html win.loadURL(`file://${path.join(__dirname, '../dist/index.html')}`); - - win.webContents.openDevTools(); + Menu.setApplicationMenu(null); } - // // 打开开发工具 - // if (NODE_ENV === "development") { - // win.webContents.openDevTools() - // } - // updateHandle(); } app.commandLine.appendSwitch('ignore-certificate-errors'); //忽略ssl证书的检测 diff --git a/package.json b/package.json index 39f72c8..4f4a4a3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "inking", - "version": "0.1.4", + "version": "1.0.0", "main": "electron/main.js", "private": true, "description": "墨迹写作, 深度、简洁、直观的文字创作工具", diff --git a/src/components/SidebarLeft.vue b/src/components/SidebarLeft.vue index 6565fbd..c3b8852 100644 --- a/src/components/SidebarLeft.vue +++ b/src/components/SidebarLeft.vue @@ -54,8 +54,8 @@ -