Skip to content

Commit

Permalink
fix: upload输入值支持int boolean等类型
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Sep 22, 2023
1 parent 28c5dc7 commit 60c641f
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,12 @@ export default defineComponent({
const arr = [];
for (let value of list) {
let fileValue: any;
if (typeof value === "string") {
if (
typeof value === "string" ||
typeof value === "number" ||
typeof value === "boolean" ||
value instanceof Date
) {
fileValue = {
url: undefined,
key: value,
Expand Down

0 comments on commit 60c641f

Please sign in to comment.