Commit 1da4624e authored by 拾柒's avatar 拾柒

修改回原版

parent 8f216d65
...@@ -4,30 +4,28 @@ ...@@ -4,30 +4,28 @@
mode="horizontal" mode="horizontal"
@select="handleSelect" @select="handleSelect"
> >
<template v-for="(item, index) in topMenus"> <template v-for="(item, index) in newTopNev">
<el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index" v-if="index < visibleNumber"> <el-menu-item :style="{'--theme': theme}" :index="item.path" :key="index"
<svg-icon >
v-if="item.meta && item.meta.icon && item.meta.icon !== '#'" {{ item.name }}</el-menu-item
:icon-class="item.meta.icon"/> >
{{ item.meta.title }}
</el-menu-item>
</template> </template>
<!-- 顶部菜单超出数量折叠 --> <!-- 顶部菜单超出数量折叠 -->
<el-submenu :style="{'--theme': theme}" index="more" v-if="topMenus.length > visibleNumber"> <!-- <el-submenu :style="{'&#45;&#45;theme': theme}" index="more" v-if="topMenus.length > visibleNumber">-->
<template slot="title">更多菜单</template> <!-- <template slot="title">更多菜单</template>-->
<template v-for="(item, index) in topMenus"> <!-- <template v-for="(item, index) in topMenus">-->
<el-menu-item <!-- <el-menu-item-->
:index="item.path" <!-- :index="item.path"-->
:key="index" <!-- :key="index"-->
v-if="index >= visibleNumber"> <!-- v-if="index >= visibleNumber">-->
<svg-icon <!-- <svg-icon-->
v-if="item.meta && item.meta.icon && item.meta.icon !== '#'" <!-- v-if="item.meta && item.meta.icon && item.meta.icon !== '#'"-->
:icon-class="item.meta.icon"/> <!-- :icon-class="item.meta.icon"/>-->
{{ item.meta.title }} <!-- {{ item.meta.title }}-->
</el-menu-item> <!-- </el-menu-item>-->
</template> <!-- </template>-->
</el-submenu> <!-- </el-submenu>-->
</el-menu> </el-menu>
</template> </template>
...@@ -40,6 +38,19 @@ const hideList = ['/index', '/user/profile']; ...@@ -40,6 +38,19 @@ const hideList = ['/index', '/user/profile'];
export default { export default {
data() { data() {
return { return {
newTopNev: [
{
path: '/',
name: '首页',
}, {
path: '/monitoring/video',
name: '视频监控',
},
{
path: '/user/profile',
name: '个人中心',
}
],
// 顶部栏初始数 // 顶部栏初始数
visibleNumber: 5, visibleNumber: 5,
// 当前激活菜单的 index // 当前激活菜单的 index
......
...@@ -192,7 +192,7 @@ export default { ...@@ -192,7 +192,7 @@ export default {
left: 50%; left: 50%;
top: 50%; top: 50%;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
width: 950px; width: 800px;
height: 500px; height: 500px;
border-radius: 8px; border-radius: 8px;
overflow: hidden; overflow: hidden;
...@@ -202,7 +202,7 @@ export default { ...@@ -202,7 +202,7 @@ export default {
.login-left { .login-left {
width: 475px; width: 375px;
height: 500px; height: 500px;
background: #388fff; background: #388fff;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment