File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import type { _Object } from '@aws-sdk/client-s3';
66
77let 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"
You can’t perform that action at this time.
0 commit comments