You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
import Vue from 'vue'
|
|
|
|
|
import Router from 'vue-router'
|
|
|
|
|
import Login from '@/pages/Login'
|
|
|
|
|
import ExternalContact from '@/pages/ExternalContact'
|
|
|
|
|
import Home from '@/pages/Home'
|
|
|
|
|
import AccountManager from '@/pages/user/AccountManager'
|
|
|
|
|
import RoleManager from '@/pages/user/RoleManager'
|
|
|
|
|
import ShopIncrease from '@/pages/shop/ShopIncrease'
|
|
|
|
|
import CustomerData from "@/pages/CustomerData";
|
|
|
|
|
|
|
|
|
|
Vue.use(Router);
|
|
|
|
|
const router = new Router({
|
|
|
|
|
mode: 'history',
|
|
|
|
|
base: '/kiisoo-ic',
|
|
|
|
|
routes: [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
redirect: '/login'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/login',
|
|
|
|
|
name: 'login',
|
|
|
|
|
component: Login
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/external/contact',
|
|
|
|
|
name: 'externalContact',
|
|
|
|
|
component: ExternalContact
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/home',
|
|
|
|
|
name: 'Home',
|
|
|
|
|
component: Home,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '/account/manager',
|
|
|
|
|
name: 'AccountManager',
|
|
|
|
|
component: AccountManager
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/role/manager',
|
|
|
|
|
name: 'RoleManager',
|
|
|
|
|
component: RoleManager
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/shop/increase',
|
|
|
|
|
name: 'ShopIncrease',
|
|
|
|
|
component: ShopIncrease
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/customer/data',
|
|
|
|
|
name: 'CustomerData',
|
|
|
|
|
component: CustomerData,
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
});
|
|
|
|
|
/*
|
|
|
|
|
* 跳转前的处理事件
|
|
|
|
|
* */
|
|
|
|
|
router.beforeEach(function (to, from, next) {
|
|
|
|
|
next();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export default router
|