forked from github/dataease
fix: 个人信息页面刷新浏览器后排版错乱
This commit is contained in:
parent
9864e3270d
commit
84282b097d
@ -289,6 +289,11 @@ export default {
|
|||||||
},
|
},
|
||||||
// 设置侧边栏的显示和隐藏
|
// 设置侧边栏的显示和隐藏
|
||||||
setSidebarHide(route) {
|
setSidebarHide(route) {
|
||||||
|
const hidePaths = ['/person-info', '/person-pwd', '/about']
|
||||||
|
if (hidePaths.includes(route.path)) {
|
||||||
|
this.$store.dispatch('app/toggleSideBarHide', true)
|
||||||
|
return
|
||||||
|
}
|
||||||
// if (!route.children || route.children.length === 1) {
|
// if (!route.children || route.children.length === 1) {
|
||||||
if (route.name !== 'system' && (!route.children || this.showChildLength(route) === 1)) {
|
if (route.name !== 'system' && (!route.children || this.showChildLength(route) === 1)) {
|
||||||
this.$store.dispatch('app/toggleSideBarHide', true)
|
this.$store.dispatch('app/toggleSideBarHide', true)
|
||||||
|
Loading…
Reference in New Issue
Block a user