mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
提交api
This commit is contained in:
28
api/phase2/place.js
Normal file
28
api/phase2/place.js
Normal file
@@ -0,0 +1,28 @@
|
||||
// import ajax from '@/utils/xajax.js'
|
||||
// import ajax from '../cesource/index.js';
|
||||
import ajax from '../ajax'
|
||||
const baseURL = process.env.VUE_APP_CESOURCE_BASE_API;
|
||||
|
||||
|
||||
/**
|
||||
* 添加或编辑
|
||||
* @param 参数见设计文档
|
||||
* */
|
||||
const saveOrUpdate=function (data){
|
||||
return ajax.postJson(baseURL,'/xboe/subgroup/m/pageplace/saveOrUpdate',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据key获取资源信息
|
||||
* */
|
||||
|
||||
const detail=function (key){
|
||||
return ajax.get(baseURL,'/xboe/subgroup/m/pageplace/detail-key?key='+key);
|
||||
}
|
||||
|
||||
|
||||
|
||||
export default {
|
||||
saveOrUpdate,
|
||||
detail
|
||||
}
|
||||
Reference in New Issue
Block a user