mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
403 B
403 B
Change File on Finish
You can change file's property when upload finishes.
<div>
<n-upload
:on-finish="handleFinish"
action="http://www.mocky.io/v2/5e4bafc63100007100d8b70f"
>
<n-button>Upload</n-button>
</n-upload>
</div>
export default {
methods: {
handleFinish ({ file }) {
file.url = 'http://www.mocky.io/v2/5e4bafc63100007100d8b70f'
}
}
}