修改: main.js

修改:     src/js/pages/Login/index.js
This commit is contained in:
shenmo 2022-09-02 09:40:28 +08:00
parent 7b1f97a6b0
commit a9fc0b6160
2 changed files with 8 additions and 8 deletions

10
main.js
View File

@ -139,7 +139,7 @@ let mainMenu = [
]
},
{
label: 'Conversations',
label: '群聊',
submenu: [
{
label: 'Loading...',
@ -147,7 +147,7 @@ let mainMenu = [
],
},
{
label: 'Contacts',
label: '私聊',
submenu: [
{
label: 'Loading...',
@ -203,7 +203,7 @@ let mainMenu = [
}
},
{
label: 'Toggle Conversations',
label: 'Toggle 群聊',
accelerator: !isOsx ? 'Ctrl+Shift+M' : 'Shift+Cmd+M',
click() {
mainWindow.show();
@ -548,8 +548,8 @@ const createMainWindow = () => {
ipcMain.on('menu-update', async(event, args) => {
var { cookies, contacts = [], conversations = [] } = args;
var conversationsMenu = mainMenu.find(e => e.label === 'Conversations');
var contactsMenu = mainMenu.find(e => e.label === 'Contacts');
var conversationsMenu = mainMenu.find(e => e.label === '群聊');
var contactsMenu = mainMenu.find(e => e.label === '私聊');
var shouldUpdate = false;
// if (!isOsx) {

View File

@ -39,10 +39,10 @@ export default class Login extends Component {
code && (<img className="disabledDrag" src={`https://login.weixin.qq.com/qrcode/${code}`} />)
}
<a href={window.location.pathname + '?' + +new Date()}>Refresh the QR Code</a>
<a href={window.location.pathname + '?' + +new Date()}>刷新二维码</a>
<p>Scan to log in to WeChat</p>
<p>Log in on phone to use WeChat on Web</p>
<p>扫描二维码登录微信</p>
<p>使用手机登录网页版微信</p>
</div>
);
}