Skip to content

Commit

Permalink
fix: 修复 Wallpaper 路径问题
Browse files Browse the repository at this point in the history
  • Loading branch information
wangrongding committed May 14, 2023
1 parent c851e6a commit 2256bad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electron/create-mac-live-wallpaper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ export function createMacLiveWallpaper() {
// wallWindow[index].webContents.openDevTools({ mode: 'right' })
await wallWindow[index].loadURL('http://localhost:1234/#/wallpaper')
} else {
await wallWindow[index].loadFile(path.join(__dirname, '../dist-web/index.html#/wallpaper'))
// await wallWindow[index].loadFile(path.join(__dirname, '../dist-web/index.html#/wallpaper'))
await wallWindow[index].loadURL(`file://${path.join(__dirname, '../dist-web/index.html')}#/wallpaper`)
}
// 窗口最大化
wallWindow[index].maximize()
Expand Down

0 comments on commit 2256bad

Please sign in to comment.