'admin-21.05.31:修复分栏、经典布局路由设置meta.isHide为true时报错问题,感谢群友@29、@芭芭拉'

This commit is contained in:
lyt-Top
2021-05-31 22:14:51 +08:00
parent abef357ec0
commit 2bc69ff31f
3 changed files with 45 additions and 1 deletions

View File

@ -6,6 +6,7 @@
`2021.05.31`
- 🎉 新增 新增个人中心演示空白页
- 🎉 新增 更新日志文件 `CHANGELOG.md`,以后每次更新都会在这里显示对应内容
- 🌟 更新 依赖更新最新版本
- 🐞 修复 分栏布局路由设置 `meta.isHide``true` 时报错问题,感谢群友@29
- 🐞 修复 分栏布局路由设置 `meta.isHide``true` 时报错问题,感谢群友@29@芭芭拉

View File

@ -213,6 +213,21 @@
}
]
},
{
"path": "/personal",
"name": "personal",
"component": "personal/index",
"meta": {
"title": "message.router.personal",
"isLink": "",
"isHide": false,
"isKeepAlive": true,
"isAffix": false,
"isIframe": false,
"auth": ["admin", "test"],
"icon": "iconfont icon-gerenzhongxin"
}
},
{
"path": "/link",
"name": "layoutLinkView",

View File

@ -0,0 +1,28 @@
<template>
<div class="personal" :style="{ height: `calc(100vh - ${setMainHeight}` }">
<div class="layout-view-bg-white flex">
<div class="flex-margin color-primary">personal</div>
</div>
</div>
</template>
<script>
export default {
name: 'personal',
data() {
return {};
},
computed: {
// 设置主盒子高度
setMainHeight() {
let { isTagsview } = this.$store.state.themeConfig.themeConfig;
if (isTagsview) return `114px`;
else return `80px`;
},
},
};
</script>
<style scoped lang="scss">
.personal {}
</style>