diff --git a/src/router/index.js b/src/router/index.js index 57efc263..8159620b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,6 +5,7 @@ import TemplateMarket from "./route.templateMarket" import Contact from "./route.contact"; import DocumentLibrary from "./route.documentLibrary"; import DataStatistics from "./route.datastatistics"; +import Creative from "./route.creative"; // 创作中心路由 @@ -39,7 +40,7 @@ const constantRoutes = [ name: "home", redirect: "/home/project", component: () => import(/* webpackChunkName: 'home' */ "@views/Home/Index.vue"), - children: [...ProjectManage, ...TemplateMarket, ...Contact, ...DocumentLibrary,...DataStatistics] + children: [...ProjectManage, ...TemplateMarket, ...Contact, ...DocumentLibrary,...DataStatistics, ...Creative] }, { path: "/luck", diff --git a/src/router/route.creative.js b/src/router/route.creative.js new file mode 100644 index 00000000..ffbd16ee --- /dev/null +++ b/src/router/route.creative.js @@ -0,0 +1,27 @@ +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; diff --git a/src/views/Creative/Material.vue b/src/views/Creative/Material.vue new file mode 100644 index 00000000..32eb9411 --- /dev/null +++ b/src/views/Creative/Material.vue @@ -0,0 +1,16 @@ + + + + + \ No newline at end of file diff --git a/src/views/Creative/MyCreation.vue b/src/views/Creative/MyCreation.vue new file mode 100644 index 00000000..e7dd5004 --- /dev/null +++ b/src/views/Creative/MyCreation.vue @@ -0,0 +1,66 @@ + + + + + \ No newline at end of file diff --git a/src/views/Creative/index.vue b/src/views/Creative/index.vue new file mode 100644 index 00000000..66953bb2 --- /dev/null +++ b/src/views/Creative/index.vue @@ -0,0 +1,166 @@ + + + + + diff --git a/src/views/Home/components/Avatar.vue b/src/views/Home/components/Avatar.vue index 77b2cebf..b0b45ea2 100644 --- a/src/views/Home/components/Avatar.vue +++ b/src/views/Home/components/Avatar.vue @@ -8,7 +8,7 @@ @@ -84,7 +84,11 @@ export default defineComponent({ { name: "问卷模版", link: "/home/market", - }, + }, + { + name: "创作中心", + link: "/home/creative", + }, // { // name: "数据统计", // link: "/home/datastatistics",