Skip to content

Commit d1a3fb4

Browse files
llkejiyllhwa
authored andcommitted
Update FileManagePage.vue
1 parent f8dcb07 commit d1a3fb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pages/FileManagePage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type { _Object } from '@aws-sdk/client-s3';
66
77
let uploadedFiles: Ref<_Object[]> = ref([]);
88
9-
function decodeKey(key: string | undefined) {
9+
function decodeKey(key: string) {
1010
return decodeURIComponent(key)
1111
}
1212
@@ -38,7 +38,7 @@ const onDeleteFileClick = async (key?: string) => {
3838
class="w-full flex flex-row items-center mt-4 rounded border-1 border-gray-300 px-2 py-1">
3939
<div class="w-10 h-10 i-mdi-file-document-outline"></div>
4040
<div class="flex flex-col">
41-
<a class="text-lg font-semibold" :href="`/${file.Key}`" target="_blank">{{ decodeKey(file.Key) }}</a>
41+
<a class="text-lg font-semibold" :href="`/${file.Key}`" target="_blank">{{ decodeKey(file.Key!) }}</a>
4242
<div class="text-sm text-gray">{{ formatBytes(file.Size ?? 0) }}</div>
4343
</div>
4444
<div class="ml-auto w-6 h-6 i-mdi-trash-can-outline cursor-pointer"

0 commit comments

Comments
 (0)