feat: 创作中心改造 - 我的改写/续写Tab展示已发布作品
This commit is contained in:
@@ -152,8 +152,8 @@ function requestCloud(options) {
|
||||
/**
|
||||
* GET请求
|
||||
*/
|
||||
export function get(url, data) {
|
||||
return request({ url, method: 'GET', data });
|
||||
export function get(url, params) {
|
||||
return request({ url, method: 'GET', params });
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -170,4 +170,11 @@ export function del(url, data) {
|
||||
return request({ url, method: 'DELETE', data });
|
||||
}
|
||||
|
||||
export default { request, get, post, del };
|
||||
/**
|
||||
* PUT请求
|
||||
*/
|
||||
export function put(url, data, options = {}) {
|
||||
return request({ url, method: 'PUT', data, ...options });
|
||||
}
|
||||
|
||||
export default { request, get, post, put, del };
|
||||
|
||||
Reference in New Issue
Block a user