umbrella22 / electron-vite-template

This project is a vue3 + Vite + electron project template composed of Vite and rollup. It has the same functions as my previous electron+Vue+template project
Other
398 stars 108 forks source link

新上的 Tray 有问题 #116

Closed tom-style closed 1 year ago

tom-style commented 1 year ago

1、静态资源找不到; 2、任务栏有个空白的占位,但是没有任务菜单和事件能触发; (node:37452) UnhandledPromiseRejectionWarning: Error: Failed to load image from path 'electron-vite-template\dist\electron\renderer\trayIcon\trayIcon.png' at initTray (electron-vite-template\dist\electron\main\main.js:6948:10) at onAppReady (electron-vite-template\dist\electron\main\main.js:7018:3) (Use electron --trace-warnings ... to show where the warning was created) (node:37452) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)