no message
Former-commit-id: d9b03b1aba4d211c5b7e4664aeb0c3e0e582291d Former-commit-id: 375b499e66faf4e31a1377ab3eda69a914432b0c Former-commit-id: de4ed0beb15eeb7c61e69b14557dc85f81ed53d5
This commit is contained in:
@@ -97,7 +97,6 @@ $theme-container-full-border-color: #d8dfea;
|
||||
.el-aside {
|
||||
// [菜单] 正常状态
|
||||
.el-menu {
|
||||
margin-top: 10px;
|
||||
.el-menu-item {
|
||||
color: #FFF;
|
||||
&:hover {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -113,7 +113,14 @@ const demoChart = {
|
||||
])('/demo/chart/')
|
||||
}
|
||||
|
||||
// 菜单
|
||||
// 菜单 侧边栏
|
||||
export const side = [
|
||||
demoPlugins,
|
||||
demoComponents,
|
||||
demoChart
|
||||
]
|
||||
|
||||
// 菜单 顶栏
|
||||
export default [
|
||||
{
|
||||
path: '/index',
|
||||
|
||||
Reference in New Issue
Block a user