mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 18:06:47 +08:00
28 lines
487 B
JavaScript
28 lines
487 B
JavaScript
import config from '@/config/index.js'
|
|
import ajax from '../ajax';
|
|
const baseURL = config.socialApiBaseUrl;
|
|
|
|
|
|
/**
|
|
* 添加或编辑
|
|
* @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
|
|
}
|