Skip to content

Commit 9574f43

Browse files
committed
修改菜单
1 parent 07d3233 commit 9574f43

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

muenu-server.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ app.all('*', (req, res, next) => {
1111
app.get('/category', (req, res) => {
1212
res.json({
1313
menuList: [
14-
// {
15-
// id: 0,
16-
// icon: 'el-icon-s-order',
17-
// index: 'table',
18-
// title: '基础表格',
19-
// pid: -1,
20-
// },
14+
{
15+
id: 0,
16+
icon: 'el-icon-s-order',
17+
index: 'table',
18+
title: '基础表格',
19+
pid: -1,
20+
},
2121
{
2222
id: 1,
2323
icon: 'el-icon-s-marketing',

src/components/menus/Menus.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
router
1212
v-if="menuList.length"
1313
>
14-
<template v-for="(item, index) in menuList">
14+
<template v-for="(item, i) in menuList">
1515
<MenuItem
16-
:key="index"
16+
:key="i"
1717
:item="item"
1818
/>
1919
</template>

0 commit comments

Comments
 (0)