|
@@ -30,24 +30,24 @@ const api = {
|
|
|
fairCorp: '/api/jobs/faircorps',
|
|
|
fairJobs: '/api/jobs/faircorps/{id}/jobs',
|
|
|
//分站菜单
|
|
|
- menuQuery: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/menu/list`,
|
|
|
+ menuQuery: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/menu/list`,
|
|
|
menuSearch: `/adminapi/menu/fetch/{id}`,
|
|
|
// 站点管理
|
|
|
- siteQuery: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/site/query`,
|
|
|
- siteFetch: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/site/config`,
|
|
|
- siteContent: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/site/content`,
|
|
|
+ siteQuery: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/site/query`,
|
|
|
+ siteFetch: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/site/config`,
|
|
|
+ siteContent: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/site/content`,
|
|
|
// 新闻管理
|
|
|
- newsQuery: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/news/list`,
|
|
|
- newsFetch: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/news/fetch/{id}`,
|
|
|
- bugInfo: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/newscreeper/fetch/{id}`,
|
|
|
+ newsQuery: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/news/list`,
|
|
|
+ newsFetch: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/news/fetch/{id}`,
|
|
|
+ bugInfo: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/newscreeper/fetch/{id}`,
|
|
|
//栏目管理
|
|
|
- columnQuery: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/column/list`,
|
|
|
- columnFetch: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/column/fetch/{id}`,
|
|
|
- bugList: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/newscreeper/list`,
|
|
|
+ columnQuery: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/column/list`,
|
|
|
+ columnFetch: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/column/fetch/{id}`,
|
|
|
+ bugList: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/newscreeper/list`,
|
|
|
//模块管理
|
|
|
- moduleQuery: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/modules/list`,
|
|
|
+ moduleQuery: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/modules/list`,
|
|
|
//合作单位/友情链接
|
|
|
- linkQuery: `${process.env.NODE_ENV === 'development' ? '/adminapi' : '/api/cms'}/img/list`,
|
|
|
+ linkQuery: `${process.env.NODE_ENV !== 'development' ? '/adminapi' : '/api/cms'}/img/list`,
|
|
|
|
|
|
// 学生关注企业
|
|
|
// stucorp: `/adminapi${process.env.NODE_ENV === 'development' ? '' : ' / jobs'}/studentcorp`,
|