www:新增问题反馈功能;dashboard:适配问题反馈功能,可以在后台系统和用户沟通
This commit is contained in:
@@ -50,5 +50,10 @@ export function useRequest() {
|
||||
return request<T>(url, { method: 'POST', body });
|
||||
}
|
||||
|
||||
return { request, get, post };
|
||||
/** POST multipart/form-data(文件上传;ofetch 自动设置 boundary) */
|
||||
function postForm<T = unknown>(url: string, body: FormData) {
|
||||
return request<T>(url, { method: 'POST', body });
|
||||
}
|
||||
|
||||
return { request, get, post, postForm };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user