@2bitlab/router 中文文档教程
router
router 想用方法
Usage
import { initRouterUtils } from '@2bitlab/router'
import Vue from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
Vue.use(VueRouter)
const router = new VueRouter({
mode: 'history',
base: process.env.BASE_URL,
routes
})
export const { gotoLoginPage, checkPathPermission, getHref, openPage } =
initRouterUtils({ router })
export default router