@2bitlab/router
v1.0.4
Published
router 想用方法
Downloads
14
Readme
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