lilinfeng 9cfc9c4018 厅局项目系统字典 | 5 months ago | |
---|---|---|
build | 6 months ago | |
conf | 6 months ago | |
public | 6 months ago | |
src | 5 months ago | |
static | 6 months ago | |
.editorconfig | 6 months ago | |
.env.development | 6 months ago | |
.env.production | 5 months ago | |
.eslintignore | 6 months ago | |
.eslintrc.js | 6 months ago | |
.gitignore | 6 months ago | |
Dockerfile | 6 months ago | |
LICENSE | 6 months ago | |
README.md | 6 months ago | |
babel.config.js | 6 months ago | |
jest.config.js | 6 months ago | |
jsconfig.json | 6 months ago | |
package-lock.json | 6 months ago | |
package.json | 6 months ago | |
plopfile.js | 6 months ago | |
pnpm-lock.yaml | 6 months ago | |
postcss.config.js | 6 months ago | |
vue.config.js | 6 months ago |
npm install --registry http://registry.npmmirror.com
打开src/utils/apiUrl.js
,修改接口地址
// 开发环境接口配置
APIURl: 'http://192.168.0.25:30000'
运行前端项目(默认会自动打开浏览器)
npm run dev
或
npm run serve
# 构建测试环境,对应.env.staging文件配置
npm run build:staging
# 构建生产环境,对应.env.production文件配置
npm run build
# 预览发布环境效果
npm run preview
# 预览发布环境效果 + 静态资源分析
npm run preview -- --report
# 代码格式检查
npm run lint
# 代码格式检查并自动修复
npm run lint -- --fix
依赖安装失败,可执行以下命令,然后再重新安装依赖
git config --global url."https://".insteadOf git://