Commit b1fb03c0 authored by sunguoshu's avatar sunguoshu

添加菜单

parent 4d6ba2e8
...@@ -2,28 +2,84 @@ import { defineMock } from 'vite-plugin-mock-dev-server' ...@@ -2,28 +2,84 @@ import { defineMock } from 'vite-plugin-mock-dev-server'
const menu: Menu[] = [ const menu: Menu[] = [
{ {
id: '1', id: '0',
name: 'Home', name: 'Home',
title: '首页', title: '首页',
path: '/home',
type: 'menu', type: 'menu',
icon: 'material-symbols:home' icon: 'material-symbols:home',
path: '/home'
},
{
id: '1',
name: '1',
title: '工作台',
type: 'dir',
icon: 'mdi:form',
children: []
}, },
{ {
id: '2', id: '2',
name: 'Trade', name: '2',
title: '交易管理', title: '客户信息管理',
type: 'dir', type: 'dir',
icon: 'mdi:form', icon: 'mdi:form',
children: [ children: []
{ },
id: 'T1001', {
name: 'T1001', id: '3',
title: '交易1001', name: '3',
type: 'menu', title: '信贷业务',
path: '/trades/1001' type: 'dir',
} icon: 'mdi:form',
] children: []
},
{
id: '4',
name: '4',
title: '出账管理',
type: 'dir',
icon: 'mdi:form',
children: []
},
{
id: '5',
name: '5',
title: '贷后管理',
type: 'dir',
icon: 'mdi:form',
children: []
},
{
id: '6',
name: '6',
title: '押品管理',
type: 'dir',
icon: 'mdi:form',
children: []
},
{
id: '7',
name: '7',
title: '综合查询',
type: 'dir',
icon: 'mdi:form',
children: []
},
{
id: '8',
name: '8',
title: '报表统计',
type: 'dir',
icon: 'mdi:form',
children: []
},
{
id: '9',
name: '9',
title: '系统维护',
type: 'dir',
icon: 'mdi:form',
children: []
} }
] ]
......
<template> <template>
<div class="w-100 h-25 bg-violet"> <div>
<h1 class="text-3xl font-bold underline"> <h1>首页</h1>
{{ $t('app.name') }}
</h1>
</div> </div>
</template> </template>
......
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