右下角名字显示

This commit is contained in:
yj 2024-11-25 16:02:57 +08:00
parent 95f53bc280
commit 39598fc5fe
2 changed files with 9 additions and 0 deletions

View File

@ -83,6 +83,7 @@ function createTray() {
// icon: iconPath, // icon: iconPath,
}, },
]); ]);
tray.setToolTip(updateJs.getTitle(env));
tray.setContextMenu(contextMenu); tray.setContextMenu(contextMenu);
tray.on('click', () => { tray.on('click', () => {
mainWindow.webContents.send('isOpenWindows'); mainWindow.webContents.send('isOpenWindows');

View File

@ -6,5 +6,13 @@ module.exports = {
default: default:
return 'https://meeting-api.23544.com/meeting/update' return 'https://meeting-api.23544.com/meeting/update'
} }
},
getTitle(env) {
switch (env) {
case 'xy':
return '湖北襄阳四中教研平台'
default:
return '智汇享'
}
} }
} }