Remove await on non-promise values

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-07 18:06:29 +08:00
parent 1b5f97dc9a
commit ede7becb3a
10 changed files with 43 additions and 43 deletions

View File

@@ -193,8 +193,8 @@ export const useFilesStore = defineStore('filesStore', {
try {
const response = await apiClient.post(api, data);
this.uploadLogId = await response.data.id;
await Swal.close(); // 關閉進度條
this.uploadLogId = response.data.id;
Swal.close(); // 關閉進度條
await this.rename(); // 改檔名
await uploadSuccess();
this.$router.push({name: 'Files'});