mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-12 12:26:48 +08:00
提交api
This commit is contained in:
31
api/phase2/guide.js
Normal file
31
api/phase2/guide.js
Normal file
@@ -0,0 +1,31 @@
|
||||
// import ajax from '@/utils/xajax.js'
|
||||
import ajax from '../ajax';
|
||||
const baseURL = process.env.VUE_APP_CESOURCE_BASE_API;
|
||||
|
||||
|
||||
/**
|
||||
* 显示提取,一次性
|
||||
* */
|
||||
const list=function (){
|
||||
return ajax.get(baseURL,'/xboe/subgroup/m/guide/list');
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存或编辑
|
||||
* */
|
||||
const save=function (data){
|
||||
return ajax.postJson(baseURL,'/xboe/subgroup/m/guide/save',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 判断当前用户是否登录过
|
||||
* */
|
||||
const hasUser=function (){
|
||||
return ajax.get(baseURL,'/xboe/subgroup/m/guide/hasUser');
|
||||
}
|
||||
|
||||
export default {
|
||||
list,
|
||||
save,
|
||||
hasUser
|
||||
}
|
||||
Reference in New Issue
Block a user