no message

Former-commit-id: d9b03b1aba4d211c5b7e4664aeb0c3e0e582291d
Former-commit-id: 375b499e66faf4e31a1377ab3eda69a914432b0c
Former-commit-id: de4ed0beb15eeb7c61e69b14557dc85f81ed53d5
This commit is contained in:
liyang
2018-06-09 22:01:49 +08:00
parent a9144e2b70
commit 96165a3a4d
3 changed files with 11 additions and 3 deletions

View File

@@ -97,7 +97,6 @@ $theme-container-full-border-color: #d8dfea;
.el-aside {
// [菜单] 正常状态
.el-menu {
margin-top: 10px;
.el-menu-item {
color: #FFF;
&:hover {

View File

@@ -16,6 +16,7 @@
</template>
<script>
import { side } from '@/menu/index.js'
export default {
props: {
collapse: {
@@ -36,7 +37,8 @@ export default {
watch: {
'$route.matched': {
handler (val) {
console.log(val)
const path = val[0].path
this.menus = side.filter(menu => menu.path === path)
},
immediate: true
}

View File

@@ -113,7 +113,14 @@ const demoChart = {
])('/demo/chart/')
}
// 菜单
// 菜单 侧边栏
export const side = [
demoPlugins,
demoComponents,
demoChart
]
// 菜单 顶栏
export default [
{
path: '/index',