|
@@ -1,77 +1,60 @@
|
|
|
import { RouteConfig } from "@/types/route";
|
|
|
|
|
|
-export const Page1: RouteConfig = {
|
|
|
- name: "Page1",
|
|
|
- path: "/page1",
|
|
|
+export const AccountManager: RouteConfig = {
|
|
|
+ name: "AccountManager",
|
|
|
+ path: "/account-manager",
|
|
|
meta: {
|
|
|
- title: "Page 1",
|
|
|
+ title: "公众号管理",
|
|
|
},
|
|
|
- component: () => import("@/views/Page1.vue"),
|
|
|
+ component: () => import("@/views/account/account.vue"),
|
|
|
};
|
|
|
|
|
|
-export const Page2: RouteConfig = {
|
|
|
- name: "Page2",
|
|
|
- path: "/page2",
|
|
|
+const PutBook = {
|
|
|
+ name: "PutBook",
|
|
|
+ path: "book",
|
|
|
meta: {
|
|
|
- title: "Page 2",
|
|
|
+ title: "投放书籍",
|
|
|
},
|
|
|
- children: [
|
|
|
- {
|
|
|
- name: "Page3",
|
|
|
- path: "page3",
|
|
|
- meta: {
|
|
|
- title: "Page 3",
|
|
|
- },
|
|
|
- children: [
|
|
|
- {
|
|
|
- name: "Page5",
|
|
|
- path: "page5",
|
|
|
- meta: {
|
|
|
- title: "Page 5",
|
|
|
- },
|
|
|
- component: () => import("@/views/Page5.vue"),
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Page6",
|
|
|
- path: "page6",
|
|
|
- meta: {
|
|
|
- title: "Page 6",
|
|
|
- },
|
|
|
- component: () => import("@/views/Page6.vue"),
|
|
|
- },
|
|
|
- ],
|
|
|
- component: () => import("@/views/Page3.vue"),
|
|
|
- },
|
|
|
- {
|
|
|
- name: "Page4",
|
|
|
- path: "page4",
|
|
|
- meta: {
|
|
|
- title: "Page 4",
|
|
|
- },
|
|
|
- component: () => import("@/views/Page4.vue"),
|
|
|
- },
|
|
|
- ],
|
|
|
- component: () => import("@/views/Page2.vue"),
|
|
|
+ component: () => import("@/views/put/put-book.vue"),
|
|
|
};
|
|
|
|
|
|
-export const Page3: RouteConfig = {
|
|
|
- name: "Page3",
|
|
|
- path: "/page3",
|
|
|
+const PutAdAccount = {
|
|
|
+ name: "PutAdAccount",
|
|
|
+ path: "ad-account",
|
|
|
meta: {
|
|
|
- title: "Page 3",
|
|
|
+ title: "广告账号",
|
|
|
},
|
|
|
- component: () => import("@/views/Page3.vue"),
|
|
|
+ component: () => import("@/views/put/put-ad-account.vue"),
|
|
|
};
|
|
|
|
|
|
-export const Page4: RouteConfig = {
|
|
|
- name: "Page4",
|
|
|
- path: "/page4",
|
|
|
+const PutAdPlan = {
|
|
|
+ name: "PutAdPlan",
|
|
|
+ path: "ad-plan",
|
|
|
meta: {
|
|
|
- title: "Page 4",
|
|
|
+ title: "广告计划",
|
|
|
},
|
|
|
- component: () => import("@/views/Page4.vue"),
|
|
|
+ component: () => import("@/views/put/put-ad-plan.vue"),
|
|
|
};
|
|
|
|
|
|
-const asyncRoutes: RouteConfig[] = [Page1, Page2];
|
|
|
+const PutData = {
|
|
|
+ name: "PutData",
|
|
|
+ path: "data",
|
|
|
+ meta: {
|
|
|
+ title: "投放数据",
|
|
|
+ },
|
|
|
+ component: () => import("@/views/put/put-data.vue"),
|
|
|
+};
|
|
|
+
|
|
|
+export const PutManager: RouteConfig = {
|
|
|
+ name: "PutManager",
|
|
|
+ path: "/put-manager",
|
|
|
+ meta: {
|
|
|
+ title: "投放管理",
|
|
|
+ },
|
|
|
+ children: [PutBook, PutAdAccount, PutAdPlan, PutData],
|
|
|
+ component: () => import("@/views/put/index.vue"),
|
|
|
+};
|
|
|
+
|
|
|
+const asyncRoutes: RouteConfig[] = [AccountManager, PutManager];
|
|
|
|
|
|
export default asyncRoutes;
|