33 lines
811 B

import Vue from 'vue';
import Router from 'vue-router';
import router from './index'
Vue.use(Router);
/* 重置路由 */
const staticRouter = [
{
path: '/',
redirect: '/beforeLogin',
},
{
path: '/beforeLogin',
component: () => import('../components/page/beforeLogin.vue'),
meta: { title: '智慧金融管理平台' }
},
{
path: '/login',
component: () => import('../components/page/Login.vue'),
meta: { title: '登录' }
},
{
path: '/bind-phone',
component: () => import('../components/page/phoneBind.vue'),
meta: { title: '绑定手机' }
}
];
export function resetRouter() {
const newRouter = new Router({
routes: staticRouter
});
router.matcher = newRouter.matcher;
}