45 lines
1.2 KiB
45 lines
1.2 KiB
/*
|
|
* @Author: your name
|
|
* @Date: 2021-11-18 17:30:38
|
|
* @LastEditTime: 2021-11-24 17:43:23
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @FilePath: /ansu-business/src/router/index.js
|
|
*/
|
|
import Vue from 'vue'
|
|
import Router from "vue-router"
|
|
const originalPush = Router.prototype.push
|
|
|
|
Router.prototype.push = function push(location) {
|
|
return originalPush.call(this, location).catch(err => err)
|
|
}
|
|
Vue.use(Router);
|
|
|
|
import Layout from "@/views/Layout"
|
|
import basic from "./basic" // 基础功能
|
|
// import payment from "./payment" // 缴费管理
|
|
// import smartMall from "./smartMall" // 智慧商城
|
|
// import operation from "./operation" // 运营管理
|
|
// import set from "./set" // 设置
|
|
|
|
const router = [
|
|
{
|
|
path: "/",
|
|
name: "Layout",
|
|
title: "外框",
|
|
component: Layout,
|
|
redirect: '/Console',
|
|
meta: {title: '首页'},
|
|
children: [...basic]
|
|
},
|
|
{
|
|
path: "/login",
|
|
name: "Login",
|
|
title: "登录",
|
|
component: resolve => require(['@/views/Login'], resolve)
|
|
}
|
|
]
|
|
|
|
export default new Router({
|
|
routes: router
|
|
}) |