Skip to content

Commit da19976

Browse files
committed
修改菜单样式
1 parent cedc105 commit da19976

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

src/components/menus/MenuItem.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
v-else
1818
:index="item.url"
1919
>
20-
<router-link :to="{ name: item.url }">
20+
<router-link :to="{ name: item.url }" class="router">
2121
<li>{{ item.name }}</li>
2222
</router-link>
2323

@@ -36,4 +36,8 @@ export default class MenuItem extends Vue {
3636
}
3737
</script>
3838

39-
<style scoped lang="scss"></style>
39+
<style scoped lang="less">
40+
.router{
41+
color: #f00;
42+
}
43+
</style>

src/routers/router.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,10 @@ const baseRoutes = [
2222
component: () => import('@/layout'),
2323
redirect: '/home',
2424
children: [
25-
{
26-
name: 'home',
27-
path: '/home',
28-
meta: { title: 'Home' },
29-
component: () => import('@/views/shared/home'),
30-
},
25+
...home,
3126
],
3227
},
33-
{
34-
name: 'login',
35-
path: '/login',
36-
meta: { title: 'login', unauth: true },
37-
component: () => import('@/views/shared/login'),
38-
},
28+
...login,
3929
];
4030

4131
// 路由的基础配置

0 commit comments

Comments
 (0)