|
@@ -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
|