版本号&退出
This commit is contained in:
parent
27d9da7893
commit
b615c1971a
8
main.js
8
main.js
|
|
@ -82,14 +82,14 @@ function createTray() {
|
||||||
// icon: iconPath,
|
// icon: iconPath,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '退出', click: async () => {
|
label: '最小化到系统托盘', click: () => {
|
||||||
await mainWindow.webContents.send('onQuit');
|
mainWindow.hide();
|
||||||
},
|
},
|
||||||
// icon: iconPath,
|
// icon: iconPath,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '最小化到系统托盘', click: () => {
|
label: '退出', click: async () => {
|
||||||
mainWindow.hide();
|
quit()
|
||||||
},
|
},
|
||||||
// icon: iconPath,
|
// icon: iconPath,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -67,63 +67,9 @@
|
||||||
|
|
||||||
@else if $i ==3 {
|
@else if $i ==3 {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
color: #ccc;
|
||||||
.footer {
|
text-align: right;
|
||||||
display: flex;
|
font-size: 16px;
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@ import { startSignalr } from '@/utils/package/signalr';
|
||||||
const Login: React.FC = () => {
|
const Login: React.FC = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const [accountPasswordStatus, setAccountPasswordStatus] = useState<boolean>(false);
|
const [accountPasswordStatus, setAccountPasswordStatus] = useState<boolean>(false);
|
||||||
|
const [version, setVersion] = useState<string>('')
|
||||||
const [operation, setOperation] = useState<{
|
const [operation, setOperation] = useState<{
|
||||||
isRememberPassword: boolean;
|
isRememberPassword: boolean;
|
||||||
isAutoLogin: 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>
|
||||||
<div>
|
<div>
|
||||||
{/* <div className={styles.footer}>
|
版本号:{version}
|
||||||
<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> */}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue