From ff5ae8884c5dfb277f7f7368f513ddb00c93a884 Mon Sep 17 00:00:00 2001 From: aixianling Date: Fri, 25 Feb 2022 17:21:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AiUploader/AiUploader.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AiUploader/AiUploader.vue b/src/components/AiUploader/AiUploader.vue index b84bcc7..1a40127 100644 --- a/src/components/AiUploader/AiUploader.vue +++ b/src/components/AiUploader/AiUploader.vue @@ -137,7 +137,7 @@ export default { if (res?.data) { this.$emit('data', res.data) this.$u.toast('上传成功!') - if (this.action == '/admin/file/add') { + if (this.action.endsWith('/file/add')) { this.fileList.push({url: res.data?.[0]?.split(";")?.[0], id: res.data?.[0]?.split(";")?.[1]}) this.$emit('input', [...this.fileList]) this.$emit('change', [...this.fileList])