diff --git a/src/modules/upload/components/upload.vue b/src/modules/upload/components/upload.vue index 1361d43..d81b108 100644 --- a/src/modules/upload/components/upload.vue +++ b/src/modules/upload/components/upload.vue @@ -57,7 +57,7 @@
- {{ text }} + {{ text }}
@@ -238,7 +238,7 @@ const limit = props.limit || options.limit.upload; const limitSize = props.limitSize || options.limit.size; // 文案 -const text = props.text || options.text; +const text = props.text === undefined ? options.text : props.text; // 请求头 const headers = computed(() => {