33 lines
955 B
JavaScript
33 lines
955 B
JavaScript
import Vant from 'vant'
|
|
//TODO 这事没写完的代码,
|
|
export default {
|
|
devBaseUrl: '/apis',
|
|
testBaseUrl: 'http://47.114.153.249:3000/api/json',
|
|
prodBaseUrl: 'http://47.114.153.249:3000/api/json',
|
|
ApiList: {
|
|
radio: '/radio', // radio页面
|
|
channelList: '/channelList', // tv列表
|
|
channelComment: '/channelComment', // tv评论
|
|
liveList:'/liveList', //融媒直播
|
|
liveDetail:'/liveDetail', //直播详情
|
|
newsDetail: 'newsDetail', // 新闻页面接口
|
|
videoDetail: '/videoDetail', // 视频页面接口
|
|
interactDetail: '/interactDetail' // 用户注册接口
|
|
},
|
|
VuePlugIn: [ Vant ],
|
|
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
|
|
}
|
|
}
|
|
}
|