refactor: 将枚举和常量从utils移动到constants

This commit is contained in:
xingyu4j
2025-09-04 18:28:13 +08:00
parent 37fba1474e
commit cf8745d844
7 changed files with 12 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
</template>
<template #file-content="{ row }">
<Image v-if="row.type && row.type.includes('image')" :src="row.url" />
<Button v-else type="link" @click="() => openWindow(row.url)">
<Button v-else type="link" @click="() => openWindow(row.url!)">
{{ row.type && row.type.includes('pdf') ? '预览' : '下载' }}
</Button>
</template>