环境准备
- node.js
- 因为本项目依赖 node-sass 可能需要另外安装python
如果未安装依赖 运行
- npm install
开发运行
-
npm run serve
-
浏览器中打开 http://localhost:8090/
打包
- npm run build
页面文件夹
- /src/views
请求接口 及 接口域名 及请求工具封装
- /src/api/
静态文件 字体及 图片等
- /src/assets/
路由配置
- /src/router/
全局用户状态
- /src/store/modules/user.js
系统工具类 时间格式化 数据存储 格式验证(手机号等)
- /src/utils/
权限控制
- /src/permission.js
项目配置
- /vue.config.js