Commit ad89a207 by 肖康

ajax

parent 72ed9bae
Showing with 27 additions and 4 deletions
......@@ -21,3 +21,4 @@ pnpm-debug.log*
*.njsproj
*.sln
*.sw?
/view
......@@ -3,9 +3,10 @@
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
"dev": "vue-cli-service serve",
"build-test": "vue-cli-service build --mode test",
"build": "vue-cli-service build"
},
"dependencies": {
"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 = {
lintOnSave:false,//关闭eslint
publicPath: NODE_ENV,
lintOnSave: false,//关闭eslint
outputDir: 'view',
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