Commit acdc46ce authored by liaozan's avatar liaozan 🏀

chore: update maven settings

parent 1606f8e3
......@@ -47,7 +47,6 @@ public class MavenUtils {
private static String[] getArgs(ArchetypeGenerateParam param, String outputDirectory) {
return new String[]{
"-B",
"-X",
"archetype:generate",
"-DarchetypeGroupId=com.schbrain.kp",
"-DarchetypeArtifactId=schbrain-archetype",
......
......@@ -3,8 +3,8 @@
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "cross-env NODE_ENV=local vue-cli-service serve",
"build": "cross-env NODE_ENV=dev vue-cli-service build ",
"serve": "cross-env NODE_ENV=dev vue-cli-service serve",
"build": "cross-env NODE_ENV=prod vue-cli-service build ",
"lint": "vue-cli-service lint"
},
"dependencies": {
......
import axios from 'axios';
import {hideLoading, showLoading} from './loading'
if (process.env.NODE_ENV != 'local') {
axios.defaults.baseURL = 'http://192.168.36.27:8080/'
} else {
axios.defaults.baseURL = 'http://localhost:8080/'
const envDict = {
'dev': 'http://localhost:8080',
'prod': 'http://192.168.36.27:8080'
}
axios.defaults.baseURL = envDict[process.env.NODE_ENV]
axios.defaults.timeout = 10000
const service = axios.create()
......
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 to comment