右下角名字显示
This commit is contained in:
parent
95f53bc280
commit
39598fc5fe
1
main.js
1
main.js
|
|
@ -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');
|
||||||
|
|
|
||||||
|
|
@ -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 '智汇享'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue