Skip to content

Commit

Permalink
Update FileManagePage.vue
Browse files Browse the repository at this point in the history
  • Loading branch information
llkeji authored and yllhwa committed Jun 7, 2024
1 parent 1b18242 commit bb26f62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/FileManagePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function decodeKey(key) {
const refreshFiles = async () => {
const res = await ListFiles();
if (res.Contents) {
uploadedFiles.value = res.Contents.map(c => ({ ...c, name: decodeKey(c.Key) }));
uploadedFiles.value = res.Contents;
}
};
Expand All @@ -38,7 +38,7 @@ const onDeleteFileClick = async (key?: string) => {
class="w-full flex flex-row items-center mt-4 rounded border-1 border-gray-300 px-2 py-1">
<div class="w-10 h-10 i-mdi-file-document-outline"></div>
<div class="flex flex-col">
<a class="text-lg font-semibold" :href="`/${file.Key}`" target="_blank">{{ file.name }}</a>
<a class="text-lg font-semibold" :href="`/${file.Key}`" target="_blank">{{ decodeKey(file.Key) }}</a>
<div class="text-sm text-gray">{{ formatBytes(file.Size ?? 0) }}</div>
</div>
<div class="ml-auto w-6 h-6 i-mdi-trash-can-outline cursor-pointer"
Expand Down

0 comments on commit bb26f62

Please sign in to comment.