Skip to content

Commit

Permalink
fix(upload): example code exception
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs committed Mar 22, 2024
1 parent faf3ce8 commit 54bf57f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/web-vue/components/upload/__demo__/submit.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@ export default {
const submitOne = (e) => {
e.stopPropagation();
console.log(files.value)
uploadRef.value.submit(
files.value.find((x) => x.status === 'init')
);
console.log(files.value);
uploadRef.value.submit(files.value.find((x) => x.status === 'init'));
};
const submit = (e) => {
Expand All @@ -65,12 +63,12 @@ export default {
};
return {
uploadRef,
files,
submitOne,
submit,
onChange
}
onChange,
};
},
};
</script>
Expand Down

0 comments on commit 54bf57f

Please sign in to comment.