Merge pull request #2534 from dataease/pr@dev@fix_person_info_refresh

fix: 个人信息页面刷新浏览器后排版错乱
This commit is contained in:
fit2cloud-chenyw 2022-06-30 16:03:09 +08:00 committed by GitHub
commit 3226064680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -289,6 +289,11 @@ export default {
},
//
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.name !== 'system' && (!route.children || this.showChildLength(route) === 1)) {
this.$store.dispatch('app/toggleSideBarHide', true)