mirror of
https://gitee.com/lyt-top/vue-next-admin
synced 2026-07-06 13:42:50 +08:00
'admin-21.05.31:修复分栏、经典布局路由设置meta.isHide为true时报错问题,感谢群友@29、@芭芭拉'
This commit is contained in:
@ -6,6 +6,7 @@
|
||||
|
||||
`2021.05.31`
|
||||
|
||||
- 🎉 新增 新增个人中心演示空白页
|
||||
- 🎉 新增 更新日志文件 `CHANGELOG.md`,以后每次更新都会在这里显示对应内容
|
||||
- 🌟 更新 依赖更新最新版本
|
||||
- 🐞 修复 分栏布局路由设置 `meta.isHide` 为 `true` 时报错问题,感谢群友@29
|
||||
- 🐞 修复 分栏布局路由设置 `meta.isHide` 为 `true` 时报错问题,感谢群友@29、@芭芭拉
|
||||
|
||||
@ -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",
|
||||
|
||||
28
src/views/personal/index.vue
Normal file
28
src/views/personal/index.vue
Normal 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>
|
||||
Reference in New Issue
Block a user