diff --git a/electron/config/config.default.js b/electron/config/config.default.js index 7b39c0a..70544cf 100644 --- a/electron/config/config.default.js +++ b/electron/config/config.default.js @@ -59,6 +59,7 @@ module.exports = (appInfo) => { }, frame: true, show: true, + icon: path.join(appInfo.home, 'public', 'images', 'logo-32.png'), //backgroundColor: '#000000' //titleBarStyle: 'hidden' }; diff --git a/frontend/src/views/base/notification/Index.vue b/frontend/src/views/base/notification/Index.vue index 03509c1..2632c71 100644 --- a/frontend/src/views/base/notification/Index.vue +++ b/frontend/src/views/base/notification/Index.vue @@ -28,7 +28,6 @@ export default { subtitle: '副标题', // macOS系统专有属性 body: '这是通知内容-默认', silent: true, - icon: '/asset/images/tray_logo.png', }, { type: 'main', diff --git a/public/images/logo-32.png b/public/images/logo-32.png new file mode 100644 index 0000000..5c3fa87 Binary files /dev/null and b/public/images/logo-32.png differ