Skip to content

Commit cb74a3e

Browse files
fix: 修复编辑待办的bug
1 parent 9d92722 commit cb74a3e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

main.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const work = () => {
5959
...WinState.winOptions,
6060
icon: "public/icons/icon.png", // 指定图标路径
6161
webPreferences: {
62-
devTools: false,
62+
// devTools: false,
6363
webSecurity: false, // 禁用 Web 安全策略
6464
nodeIntegration: true, // 启用集成
6565
backgroundThrottling: false, // 取消节流
@@ -78,7 +78,7 @@ const work = () => {
7878
} else {
7979
win.loadFile(path.join("dist", "index.html"));
8080
}
81-
// win.webContents.openDevTools(); // 打开开发者工具
81+
win.webContents.openDevTools(); // 打开开发者工具
8282
winState.manage(win); // 配置持久化
8383
win.on("ready-to-show", () => {
8484
win.show();

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "iTime",
3-
"version": "1.0.4",
3+
"version": "1.1.0",
44
"description": "基于electron+vue3+arco design开发的桌面效率工具",
55
"author": "AlbertZhang<han892577@qq.com>",
66
"private": true,

preload/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ contextBridge.exposeInMainWorld("electron", {
4949
},
5050
// 编辑待办
5151
editToDo: (callback) => {
52-
ipcRenderer.on("edit-", (event, id) => {
52+
ipcRenderer.on("edit-todo", (event, id) => {
5353
callback(id);
5454
});
5555
},

0 commit comments

Comments
 (0)