Skip to content

Commit b63a75f

Browse files
authored
Merge pull request #12 from HaoyunJi/main
Fix - delete final file will not update file manager page
2 parents 348e210 + 6521c19 commit b63a75f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/pages/FileManagePage.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,10 @@ function decodeKey(key: string) {
1212
1313
const refreshFiles = async () => {
1414
const res = await ListFiles();
15-
if (res.Contents) {
15+
if (res.hasOwnProperty('Contents') && res.Contents) {
1616
uploadedFiles.value = res.Contents;
17+
} else {
18+
uploadedFiles.value = [];
1719
}
1820
};
1921

0 commit comments

Comments
 (0)