From feecce3a0501a85ce598c377c2f2f1c83a508b32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Mon, 7 Nov 2022 09:20:01 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8(component):=20update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/src/component/upload/index.vue | 78 ++++++++++++++----- 1 file changed, 59 insertions(+), 19 deletions(-) diff --git a/package/component/src/component/upload/index.vue b/package/component/src/component/upload/index.vue index d8ea0f78..2cda8342 100644 --- a/package/component/src/component/upload/index.vue +++ b/package/component/src/component/upload/index.vue @@ -231,7 +231,7 @@ const errorF = (errorText: string) => { let errorMsg = errorText ? errorText : defaultErrorMsg; errorMsg = `layui-vue:${errorMsg}`; console.warn(errorMsg); - layer.msg(errorMsg, { icon: 2, time: 1000 }, function (res: unknown) { }); + layer.msg(errorMsg, { icon: 2, time: 1000 }, function (res: unknown) {}); emit("error", Object.assign({ currentTimeStamp, msg: errorMsg })); }; @@ -403,9 +403,22 @@ onUnmounted(() => {