版本 v1.0.0
- [email protected]框架
- [email protected]UI 库
- [email protected]路由
- [email protected]状态管理
- [email protected]http 请求库
- [email protected]css 预处理器
- [email protected]构建工具
采用二级目录划分 例
- 权限管理
- 用户管理
- 角色管理
- 资源管理
- 供应链管理
- 发货管理
- 买断管理
+-- build/ ---webpack conf文件目录
+-- config/ ---环境配置文件目录
+-- node_modules/ ---npm包目录
+-- src/ ---核心代码目录
| +--api/ ---http请求定义目录
| +--assets/ ---组件资源目录css、image
| +--components/ ---公共组件/业务组件目录
| +--directives/ ---自定义指令
| +--filters/ ---过滤器
| +--router/ ---路由(按模块分目录)
| +--store/ ---状态管理(按模块分目录)
| +--utils/ ---工具方法
| +--views ---业务组件目录(尽可能拆分vue、js、css)
| | --- ...
| ---App.vue ---vue主视图
| ---main.js ---vue入口
+-- static/ ---静态资源(iconfont等)
---.babelrc ---babel转码配置文件
---.editorconfig ---格式化配置文件(配合prettier插件)
---.gitignore ---git忽略配置文件
---.postcssrc.js ---postcss插件配置文件
---index.html ---页面入口html
---package-lock.json ---依赖包版本锁定文件
---package.json ---依赖包配置文件
npm install
npm start
根据不同环境打包,配置文件在 config/目录
测试环境
npm run test
生产环境
npm run build
- 采用 eslint 检查代码、标准为'standard'
- icon 采用 material-design,也可添加 svg 等
- 接口文档建议写在 tapd 等位置统一管理
- 建议用 vscode 开发,采用.vscode 目录下工作区设置,统一格式规范等
- 去掉keep-alive缓存
- 修复生产环境图片引用路径出错问题
- 添加 vuex 持久化存储,添加 file-saver 文件保存
- table 组件增加获取选中行的 ids
- 修改 common 日期格式化方法,添加 debounce 去抖方法
- 使用 sass-resources-loader 引入 sass 全局变量 common.scss、index.scss
- 设置页面 title 名称
- 修改菜单滚动条
- 增加权限功能
- 登陆
- 权限管理
- 文档编写