From 15bf75d2c46b3599ff9ff089ed460500fe410eae Mon Sep 17 00:00:00 2001 From: From-wh Date: Mon, 26 Jun 2023 11:28:46 +0800 Subject: [PATCH] =?UTF-8?q?improve:=20=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/admin/src/api/uploadPictures.js | 12 ++- .../admin/src/components/uploadImg/index.vue | 5 +- template/admin/src/pages/app/upload/index.vue | 84 ++++++++++++------- 3 files changed, 69 insertions(+), 32 deletions(-) diff --git a/template/admin/src/api/uploadPictures.js b/template/admin/src/api/uploadPictures.js index 95276417c..8ad8c5d1b 100644 --- a/template/admin/src/api/uploadPictures.js +++ b/template/admin/src/api/uploadPictures.js @@ -104,7 +104,6 @@ export function fileDelApi(ids) { } /** * @description 网络图片上传 - * @param {String} param ids {String} 图片id拼接成的字符串 */ export function onlineUpload(data) { return request({ @@ -113,3 +112,14 @@ export function onlineUpload(data) { data, }); } + +/** + * @description 清除扫码上传 code + */ +export function scanUploadCode() { + return request({ + url: 'scan_upload/qrcode ', + method: 'delete' + }); +} + diff --git a/template/admin/src/components/uploadImg/index.vue b/template/admin/src/components/uploadImg/index.vue index b0fc1f63e..52071e779 100644 --- a/template/admin/src/components/uploadImg/index.vue +++ b/template/admin/src/components/uploadImg/index.vue @@ -123,7 +123,7 @@