版本号&退出
This commit is contained in:
parent
27d9da7893
commit
b615c1971a
8
main.js
8
main.js
|
|
@ -82,14 +82,14 @@ function createTray() {
|
|||
// icon: iconPath,
|
||||
},
|
||||
{
|
||||
label: '退出', click: async () => {
|
||||
await mainWindow.webContents.send('onQuit');
|
||||
label: '最小化到系统托盘', click: () => {
|
||||
mainWindow.hide();
|
||||
},
|
||||
// icon: iconPath,
|
||||
},
|
||||
{
|
||||
label: '最小化到系统托盘', click: () => {
|
||||
mainWindow.hide();
|
||||
label: '退出', click: async () => {
|
||||
quit()
|
||||
},
|
||||
// icon: iconPath,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -67,63 +67,9 @@
|
|||
|
||||
@else if $i ==3 {
|
||||
flex-shrink: 0;
|
||||
|
||||
.footer {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
>div {
|
||||
flex-grow: 1;
|
||||
height: 1px;
|
||||
background-color: #3F3F3F;
|
||||
}
|
||||
|
||||
>span {
|
||||
flex-shrink: 0;
|
||||
margin: 0 4px;
|
||||
color: #7A7A7A;
|
||||
font-size: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.code {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-top: 34px;
|
||||
|
||||
@for $i from 1 through 2 {
|
||||
>div:nth-child(#{$i}) {
|
||||
@if $i ==1 {
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
@else if $i ==2 {
|
||||
|
||||
flex-shrink: 0;
|
||||
cursor: pointer;
|
||||
height: 44px;
|
||||
line-height: 44px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-color: #3A1457;
|
||||
box-shadow: none;
|
||||
border-radius: 10px;
|
||||
width: 56px;
|
||||
margin-left: 4px;
|
||||
transition: 0.3s;
|
||||
|
||||
&:hover {
|
||||
background-color: lighten(#3A1457, 5%) !important;
|
||||
}
|
||||
|
||||
&:active {
|
||||
background-color: darken(#3A1457, 5%) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
color: #ccc;
|
||||
text-align: right;
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import { startSignalr } from '@/utils/package/signalr';
|
|||
const Login: React.FC = () => {
|
||||
const navigate = useNavigate();
|
||||
const [accountPasswordStatus, setAccountPasswordStatus] = useState<boolean>(false);
|
||||
const [version, setVersion] = useState<string>('')
|
||||
const [operation, setOperation] = useState<{
|
||||
isRememberPassword: boolean;
|
||||
isAutoLogin: boolean;
|
||||
|
|
@ -61,6 +62,9 @@ const Login: React.FC = () => {
|
|||
})
|
||||
}
|
||||
}
|
||||
window.electron.getVersion().then(res => {
|
||||
setVersion(res)
|
||||
})
|
||||
}, []);
|
||||
|
||||
// 退出
|
||||
|
|
@ -222,17 +226,7 @@ const Login: React.FC = () => {
|
|||
</div>
|
||||
</div>
|
||||
<div>
|
||||
{/* <div className={styles.footer}>
|
||||
<div></div>
|
||||
<span>or</span>
|
||||
<div></div>
|
||||
</div> */}
|
||||
{/* <div className={`${styles.code} drag`}>
|
||||
<div>
|
||||
<Input placeholder="输入会议号" className={`${styles.loginInput}`} />
|
||||
</div>
|
||||
<div><img src={ImageUrl.icon3} alt="" /></div>
|
||||
</div> */}
|
||||
版本号:{version}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue