hi-ucs/front/mock/controller/router.js

38 lines
586 B
Vue
Raw Permalink Normal View History

2022-06-14 09:32:49 +08:00
const data = [
{
path: '/',
component: 'Layout',
redirect: '/index',
meta: {
title: '首页',
icon: 'home-4-line',
affix: true,
},
children: [
{
path: 'index',
name: 'Index',
component: '@/views/index',
meta: {
title: '首页',
icon: 'home-4-line',
affix: true,
},
},
],
},
]
module.exports = [
{
url: '/menu/navigate',
type: 'get',
response() {
return {
code: 200,
msg: 'success',
data,
}
},
},
]