24 lines
457 B
JavaScript
24 lines
457 B
JavaScript
export default {
|
|
devUrl: 'http://192.168.1.131:3000/api/json',
|
|
testUrl: '',
|
|
prodUrl: '',
|
|
apiList: {
|
|
index: '/index',
|
|
type: '/class',
|
|
classList: '/classList'
|
|
},
|
|
checkUrl: function () {
|
|
switch (process.env.NODE_ENV) {
|
|
case 'development':
|
|
return this.devUrl;
|
|
break;
|
|
case 'test':
|
|
return this.testUrl;
|
|
break;
|
|
case 'production':
|
|
return this.prodUrl;
|
|
break;
|
|
}
|
|
}
|
|
}
|