Files
ylst-pc/src/router/route.creative.js
2022-12-12 15:04:20 +08:00

28 lines
753 B
JavaScript

const Creative = () => import(/* webpackChunkName: 'home' */ '@views/Creative/index.vue');
const MyCreation = () => import(/* webpackChunkName: 'home' */ '@views/Creative/MyCreation.vue');
const Material = () => import(/* webpackChunkName: 'home' */ '@views/Creative/Material.vue');
const router = [
{
path: 'creative',
name: 'creative',
component: Creative,
redirect: '/home/creative/my-creation',
children: [
{
path: "my-creation",
name: 'myCreation',
meta: { title: '我的作品' },
component: MyCreation,
},
{
path: "material",
name: 'material',
meta: { title: '素材库' },
component: Material,
},
]
},
];
export default router;