1yongsh-fe 中文文档教程
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