Files
ClassContent/历届学生/逯帅帅/项目开发/上课项目/vuecli3/src/config/index.js
2024-09-27 02:06:13 +08:00

28 lines
669 B
JavaScript

import ElementUI from 'element-ui';
export default {
devBaseUrl: 'http://www.geekhelp.cn/bmy/api/admin',
testBaseUrl: 'http://47.114.153.249:3000/api/json',
prodBaseUrl: 'http://47.114.153.249:3000/api/json',
ApiList: {
login: '/adminLogin',
allCourse: '/getAllCourse',
getUploadToken: '/token'
},
VuePlugIn: [ ElementUI ],
getUrl () {
switch (process.env.NODE_ENV) {
case 'development':
return this.devBaseUrl
// eslint-disable-next-line no-unreachable
break
case 'test':
return this.testBaseUrl
break
case 'production':
return this.prodBaseUrl
break
}
}
}