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(() => {