搜索结果列表页面开发
This commit is contained in:
11
src/api/report/index.ts
Normal file
11
src/api/report/index.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 数据上报
|
||||
export function report(eventId: string, data: object, headers: object = {}): Promise<any> {
|
||||
return request({
|
||||
url: `/api/v1/report?event_id=${eventId}`,
|
||||
method: 'post',
|
||||
data,
|
||||
headers
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user