0.3.1 • Published 3 years ago
1yongsh-fe v0.3.1
1yongsh-fe
install
npm i 1yongsh-fe -S
main.js
import Vue from 'vue'
// 覆盖默认路由
import appRoutes from './router'
import YongShFE from '1yongsh-fe'
window.appCode = 'test'
Vue.use(YongShFE, { appRoutes })
自定义通用路由 ./router/index.js
import { commonRoute } from 'xyvue-fe'
const routers = [
commonRoute.login,
commonRoute.ssoLogin,
commonRoute.layout
]
export default routers