Commit ad89a207 by 肖康

ajax

parent 72ed9bae
Showing with 28 additions and 5 deletions
...@@ -21,3 +21,4 @@ pnpm-debug.log* ...@@ -21,3 +21,4 @@ pnpm-debug.log*
*.njsproj *.njsproj
*.sln *.sln
*.sw? *.sw?
/view
...@@ -3,9 +3,10 @@ ...@@ -3,9 +3,10 @@
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {
"serve": "vue-cli-service serve", "dev": "vue-cli-service serve",
"build": "vue-cli-service build", "build-test": "vue-cli-service build --mode test",
"lint": "vue-cli-service lint" "build": "vue-cli-service build"
}, },
"dependencies": { "dependencies": {
"axios": "^0.21.1", "axios": "^0.21.1",
......
const env = process.env.NODE_ENV;
console.log(env)
switch (env) {
case 'development':
//开发环境
NODE_ENV = '/';
break;
case 'test':
//测试环境
NODE_ENV = '';
break;
case 'production':
//线上环境
NODE_ENV = '/';
break;
}
module.exports = { module.exports = {
lintOnSave:false,//关闭eslint publicPath: NODE_ENV,
lintOnSave: false,//关闭eslint
outputDir: 'view',
productionSourceMap: false productionSourceMap: false
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment