# school **Repository Path**: xiaowuyb/school ## Basic Information - **Project Name**: school - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-29 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## e贸云通教学版前端项目 ### 基本操作 #### npm install 初始化项目 #### npm run dev 运行项目 #### bpm run build 编译打包 ### eslint校验代码规范 #### 运行 npm run lint 自动修复 #### 配置 vscode settings.json 保存代码自动eslint规范格式化 ``` { "editor.tabSize": 4, "editor.codeActionsOnSave": { "source.fixAll.eslint": true, }, } ``` ### 系统角色 登录接口的 roleType 字段 1:后台管理员 2:院校管理员 3:老师 4:学生 ### 权限配置 左侧菜单配置: src\libs\permission.js 中配置角色对应的菜单 Permission 组件 根据角色权限控制内容是否展示: ``` 有权限才展示的内容 有权限才展示的内容 ``` ### router路由 默认keep-alive meta.wt 字段控制是否登录拦截 使用 require.context 自动导入 src/view 下的 router.js 文件 格式: ``` import main from "@/view/main"; export default { path: "/studentManage", component: main, meta: { title: 'xxx', }, children: [ { meta: { title: 'xxx', }, path: '', name: 'xxx', component: () => import('xxxx') } ] }; ```