From 8ef825f32498b5d723732cf23560c071e910aba9 Mon Sep 17 00:00:00 2001
From: 安瑾然 <m17681517455@outlook.com>
Date: 星期一, 06 三月 2023 15:34:42 +0800
Subject: [PATCH] 用户管理添加设为警员的按钮 公告管理添加图片的添加和详情图片的回显
---
src/api/common.js | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/src/api/common.js b/src/api/common.js
index 3a514a6..c914421 100644
--- a/src/api/common.js
+++ b/src/api/common.js
@@ -8,13 +8,10 @@
})
}
+
export function getImgUrl(val) {
- return request({
- url: '/minio/getUrl',
- method: 'get',
- params: {
- fileName: val
- }
+ return new Promise(resolve => {
+ resolve("/minio/img/" + val)
})
}
@@ -32,3 +29,11 @@
method: 'get',
})
}
+
+export function checkPass(params) {
+ return request({
+ url: `/report/audit`,
+ method: 'post',
+ data: params
+ })
+}
\ No newline at end of file
--
Gitblit v1.8.0