You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
769 B
52 lines
769 B
1 year ago
|
# vue-admin-template
|
||
|
|
||
|
## 功能点
|
||
|
- 集成了友盟的上报js
|
||
|
- 请求axios集成了上报功能
|
||
|
|
||
|
## 构建
|
||
|
|
||
|
```bash
|
||
|
# 克隆项目
|
||
|
git clone http://code.linkkids.cn/fe_web_public/vue-admin-template.git
|
||
|
|
||
|
# 进入项目目录
|
||
|
cd vue-admin-template
|
||
|
|
||
|
# 安装依赖
|
||
|
npm install
|
||
|
|
||
|
npm install --registry=http://npmneibu.linkkids.cn
|
||
|
|
||
|
# 启动服务
|
||
|
npm run dev
|
||
|
```
|
||
|
|
||
|
浏览器访问 [http://localhost:9528](http://localhost:9528)
|
||
|
|
||
|
## 发布
|
||
|
|
||
|
```bash
|
||
|
# 构建测试环境
|
||
|
npm run build:stage
|
||
|
|
||
|
# 构建生产环境
|
||
|
npm run build:prod
|
||
|
```
|
||
|
|
||
|
## 其它
|
||
|
|
||
|
```bash
|
||
|
# 预览发布环境效果
|
||
|
npm run preview
|
||
|
|
||
|
# 预览发布环境效果 + 静态资源分析
|
||
|
npm run preview -- --report
|
||
|
|
||
|
# 代码格式检查
|
||
|
npm run lint
|
||
|
|
||
|
# 代码格式检查并自动修复
|
||
|
npm run lint -- --fix
|
||
|
```
|