xgwangman 4 anni fa
parent
commit
26274737e9
3 ha cambiato i file con 43 aggiunte e 6 eliminazioni
  1. 36 0
      src/router-market.js
  2. 6 5
      src/router.js
  3. 1 1
      vue.config.js

+ 36 - 0
src/router-market.js

@@ -0,0 +1,36 @@
+const marketRouter = [
+  {
+    path: '/marketing',
+    name: 'marketing'
+  },
+  {
+      path:'/marketing/ticketList',
+      name:'ticketList'
+  },
+  {
+    path: '/marketing/activity-list', // 活动-列表
+    name: 'activity-list'
+  },
+  {
+    path: '/marketing/activity-add', // 活动-新增
+    name: 'activity-add'
+  },
+  {
+    path: '/marketing/activity-edit', // 活动-编辑
+    name: 'activity-edit'
+  },
+  {
+    path:'/marketing/addTicket',
+    name:'addTicket'
+  },
+  {
+    path:'/marketing/ticketDetail',
+    name:'ticketDetail'
+  },
+  {
+    path:'/marketing/ticketEdit',
+    name:'ticketEdit'
+  }
+]
+
+export default marketRouter

+ 6 - 5
src/router.js

@@ -2,6 +2,7 @@ import Vue from 'vue'
 import Router from 'vue-router'
 import {config, trim} from './helper'
 import _ from "lodash";
+import marketRouter from './router-market.js'
 
 // 默认title
 document.title = config('SITE_NAME');
@@ -15,10 +16,10 @@ const routes = [
         name: 'index',
         component: () => import('./views/index.vue')
     },
-    // {
-    //     path: '*',
-    //     component: () => import('./views/error.vue')
-    // },
+    {
+        path: '*',
+        component: () => import('./views/error.vue')
+    },
     {
         path: '/sales/partnerList/partnerDetail',
         name: 'partnerDetail',
@@ -66,7 +67,7 @@ Vue.use(Router);
 
 const router = new Router({
     mode: 'history',
-    routes: routes
+    routes: [...routes, ...marketRouter]
 });
 
 const originalPush = Router.prototype.push

+ 1 - 1
vue.config.js

@@ -1,7 +1,7 @@
 const webpack = require('webpack')
 module.exports = {
   publicPath: '/',
-  outputDir: "dist",
+  outputDir: "qmx_page_admin",
   productionSourceMap: false,
   configureWebpack: {
     plugins: [