zhuhao_dev #5
|
@ -52,7 +52,7 @@ import useUserStore from '@/store/modules/user'
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const userInfo = userStore.user
|
const userInfo = userStore.user
|
||||||
|
|
||||||
// const { ipcRenderer } = window.electron
|
const { ipcRenderer } = window.electron||{}
|
||||||
|
|
||||||
const radio1 = ref('resource')
|
const radio1 = ref('resource')
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ const minimizeWindow = () => {
|
||||||
}
|
}
|
||||||
//最大化
|
//最大化
|
||||||
const maximizeWindow = () => {
|
const maximizeWindow = () => {
|
||||||
ipcRenderer.send('maximize-window')
|
ipcRenderer?.send('maximize-window')
|
||||||
isMaxSize.value = !isMaxSize.value
|
isMaxSize.value = !isMaxSize.value
|
||||||
}
|
}
|
||||||
//关闭
|
//关闭
|
||||||
|
@ -95,7 +95,7 @@ const changePage = (url)=>{
|
||||||
.change-tab{
|
.change-tab{
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
|
|
||||||
ul{
|
ul{
|
||||||
li{
|
li{
|
||||||
padding: 3px 13px;
|
padding: 3px 13px;
|
||||||
|
@ -155,7 +155,7 @@ const changePage = (url)=>{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.user {
|
.user {
|
||||||
|
|
||||||
.user-info {
|
.user-info {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -87,7 +87,7 @@ service.interceptors.response.use(res => {
|
||||||
ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' }).then(() => {
|
||||||
isRelogin.show = false;
|
isRelogin.show = false;
|
||||||
useUserStore().logOut().then(() => {
|
useUserStore().logOut().then(() => {
|
||||||
location.href = '/index';
|
location.href = '/index#/login';
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
isRelogin.show = false;
|
isRelogin.show = false;
|
||||||
|
|
Loading…
Reference in New Issue