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 = () => {
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 ( ) ;
Original file line number Diff line number Diff line change 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 ,
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments