1 Commits

Author SHA1 Message Date
c119fbaf7e Update: 修改 README.md,增添更多 TODOs 2025-09-10 22:06:49 +08:00
3 changed files with 5 additions and 3 deletions

View File

@ -52,5 +52,7 @@ npm run start
## TODO ## TODO
- [x] 更美观的说的道理,优化 UI - [x] 更美观的说的道理,优化 UI
- [ ] 更多的哇袄 - [x] 更多的哇袄
- [x] 自定义更换不同的道理 - [x] 更换不同的道理
- [ ] 更完善的托盘
- [ ] 实用功能,更贴心的道理

View File

@ -270,7 +270,7 @@ function createWindow() {
// 修改托盘图标路径以确保在开发和生产环境中正确加载 // 修改托盘图标路径以确保在开发和生产环境中正确加载
const iconPath = process.env.NODE_ENV === "development" const iconPath = process.env.NODE_ENV === "development"
? path.join(__dirname, "../assets/icon.ico") // 开发环境路径 ? path.join(__dirname, "../assets/icon.ico") // 开发环境路径
: path.join(process.resourcesPath, "assets/icon.ico"); // 生产环境路径 : path.join(__dirname, "../renderer/public/images/icon.ico"); // 生产环境路径
const trayIcon = nativeImage.createFromPath(iconPath); const trayIcon = nativeImage.createFromPath(iconPath);
if (trayIcon.isEmpty()) { if (trayIcon.isEmpty()) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB