fix:当处于移动端效果优化
This commit is contained in:
parent
e0352e4333
commit
e6e126d775
|
|
@ -68,12 +68,14 @@
|
||||||
import {useSettingStore} from "@/store/modules/setting"
|
import {useSettingStore} from "@/store/modules/setting"
|
||||||
import {useUserStore} from "@/store/modules/user"
|
import {useUserStore} from "@/store/modules/user"
|
||||||
import {usePermissionStore} from "@/store/modules/permission"
|
import {usePermissionStore} from "@/store/modules/permission"
|
||||||
|
import {useTagsViewStore} from "@/store/modules/tagsView"
|
||||||
|
|
||||||
const person = ref()
|
const person = ref()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const SettingStore = useSettingStore()
|
const SettingStore = useSettingStore()
|
||||||
const UserStore = useUserStore()
|
const UserStore = useUserStore()
|
||||||
const PermissionStore = usePermissionStore()
|
const PermissionStore = usePermissionStore()
|
||||||
|
const TagsViewStore = useTagsViewStore()
|
||||||
|
|
||||||
const isCollapse = computed(() =>!SettingStore.isCollapse)
|
const isCollapse = computed(() =>!SettingStore.isCollapse)
|
||||||
// menu 布局
|
// menu 布局
|
||||||
|
|
@ -94,7 +96,7 @@
|
||||||
await UserStore.logout()
|
await UserStore.logout()
|
||||||
router.push({ path: '/login' })
|
router.push({ path: '/login' })
|
||||||
PermissionStore.clearRoutes()
|
PermissionStore.clearRoutes()
|
||||||
store.dispatch('tagsView/clearVisitedView')
|
TagsViewStore.clearVisitedView()
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
|
|
@ -150,7 +152,7 @@
|
||||||
top: 0;
|
top: 0;
|
||||||
background: white;
|
background: white;
|
||||||
left: 0;
|
left: 0;
|
||||||
z-index: 99;
|
z-index: 9;
|
||||||
right: 0;
|
right: 0;
|
||||||
transition: left 0.3s;
|
transition: left 0.3s;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
// 是否折叠
|
// 是否折叠
|
||||||
const isCollapse = computed(() => {
|
const isCollapse = computed(() => {
|
||||||
return !useSettingStore.isCollapse
|
return !SettingStore.isCollapse
|
||||||
})
|
})
|
||||||
let { device } = useResizeHandler()
|
let { device } = useResizeHandler()
|
||||||
// 当屏幕切换的时候进行变换
|
// 当屏幕切换的时候进行变换
|
||||||
|
|
@ -78,7 +78,7 @@
|
||||||
top: 0;
|
top: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 999;
|
z-index: 90;
|
||||||
}
|
}
|
||||||
.m-container-content {
|
.m-container-content {
|
||||||
//padding: 20px;
|
//padding: 20px;
|
||||||
|
|
|
||||||
|
|
@ -14,3 +14,10 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media screen and ( max-width: 540px ) {
|
||||||
|
.app-breadcrumb{
|
||||||
|
display: none!important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue