fix: quotation => upload additional file

This commit is contained in:
puriphatt 2024-11-26 15:37:50 +07:00
parent d12acef602
commit 2e825e373f
2 changed files with 6 additions and 5 deletions

View file

@ -37,7 +37,7 @@ const fileData = defineModel<
const file = ref<File[]>([]);
const refQFile = ref<InstanceType<typeof QFile>>();
async function triggerViewSlip(url: string) {
async function triggerViewFile(url: string) {
window.open(
props.transformUrl ? await props.transformUrl(url) : `${baseUrl}/${url}`,
'_blank',
@ -93,7 +93,7 @@ function pickFile() {
color="hsl(var(--text-mute))"
clickable
:closeable="!readonly"
@click="triggerViewSlip(d.url || '')"
@click="triggerViewFile(d.url || '')"
@close="$emit('close', d.name)"
/>
</div>