From 0782140a00e554ec7a1c724ecc1eb36726d994f8 Mon Sep 17 00:00:00 2001 From: odc.xiaohui <xiaohui@Q1> Date: 星期一, 22 五月 2023 11:45:18 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/api/common.js | 34 +++++++++++++++++++++++++++------- 1 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/api/common.js b/src/api/common.js index 28a70b4..441ab79 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -8,12 +8,32 @@ }) } + export function getImgUrl(val) { - return request({ - url: '/minio/getUrl', - method: 'get', - params: { - fileName: val - } + return new Promise(resolve => { + resolve("/minio/img/" + val) }) -} \ No newline at end of file +} + +export function report(params) { + return request({ + url: '/report', + method: 'post', + data: params + }) +} + +export function getReportById(id) { + return request({ + url: `/report/${id}`, + method: 'get', + }) +} + +export function checkPass(params) { + return request({ + url: `/report/audit`, + method: 'post', + data: params + }) +} -- Gitblit v1.8.0