赞
踩
例如:
- npm run serve调用本地环境api
- npm run test 调用测试环境api
- npm run build 调用线上环境api
1、先在package.json文件中添加:
- "scripts": {
- "dev": "vue-cli-service serve",
- "build": "vue-cli-service build",
- "lint": "vue-cli-service lint",
- "preview": "serve dist",
-
- "test
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。