27 lines
1.0 KiB
JavaScript
27 lines
1.0 KiB
JavaScript
export default {
|
||
devBaseUrl: 'http://192.168.31.100:3000/api',
|
||
prodBaseUrl: 'http://127.0.0.1:3000/api',
|
||
urlList: {
|
||
class:"/index/class",//1.首页获取分类数据接口
|
||
hot:"index/hot",//2.热门推荐
|
||
threeMeals: '/index/threeMeals',//3.每日三餐接口
|
||
banner:"/index/banner",//4.获取banner图
|
||
bannerInfo:"/index/bannerInfo",//5.获取banner点击后的详情
|
||
video:'/video/list',//6.菜谱视频大全列表
|
||
search:'/search/list',//7.搜索接口
|
||
leftMenu:"/type/leftMenu",//8:分类页面左侧分类菜单
|
||
rightMenu:"/type/rightMenu",//9.分类页面获取右边的小内容
|
||
rightMenuList:"/type/rightMenuList",//10.点击右边小分类获取分类列表
|
||
info:"/index/info"//11.获取详情
|
||
},
|
||
checkUrl: function () {
|
||
switch (process.env.NODE_ENV) {
|
||
case "development":
|
||
return this.devBaseUrl;
|
||
break;
|
||
case "production":
|
||
return this.prodBaseUrl;
|
||
break;
|
||
}
|
||
}
|
||
} |