File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ const work = () => {
59
59
...WinState . winOptions ,
60
60
icon : "public/icons/icon.png" , // 指定图标路径
61
61
webPreferences : {
62
- devTools : false ,
62
+ // devTools: false,
63
63
webSecurity : false , // 禁用 Web 安全策略
64
64
nodeIntegration : true , // 启用集成
65
65
backgroundThrottling : false , // 取消节流
@@ -78,7 +78,7 @@ const work = () => {
78
78
} else {
79
79
win . loadFile ( path . join ( "dist" , "index.html" ) ) ;
80
80
}
81
- // win.webContents.openDevTools(); // 打开开发者工具
81
+ win . webContents . openDevTools ( ) ; // 打开开发者工具
82
82
winState . manage ( win ) ; // 配置持久化
83
83
win . on ( "ready-to-show" , ( ) => {
84
84
win . show ( ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " iTime" ,
3
- "version" : " 1.0.4 " ,
3
+ "version" : " 1.1.0 " ,
4
4
"description" : " 基于electron+vue3+arco design开发的桌面效率工具" ,
5
5
"author" : " AlbertZhang<han892577@qq.com>" ,
6
6
"private" : true ,
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ contextBridge.exposeInMainWorld("electron", {
49
49
} ,
50
50
// 编辑待办
51
51
editToDo : ( callback ) => {
52
- ipcRenderer . on ( "edit-" , ( event , id ) => {
52
+ ipcRenderer . on ( "edit-todo " , ( event , id ) => {
53
53
callback ( id ) ;
54
54
} ) ;
55
55
} ,
You can’t perform that action at this time.
0 commit comments