Drop unused error parameter from apiError

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RaRBJFZKSTA7naHGuQHfnQ
This commit is contained in:
2026-07-04 22:25:12 +08:00
co-authored by Claude Fable 5
parent 7095db5ee9
commit c54557c11c
9 changed files with 61 additions and 43 deletions
+9 -9
View File
@@ -146,7 +146,7 @@ export const useFilesStore = defineStore("filesStore", {
: null;
});
} catch (error) {
apiError(error, "Failed to load the files.");
apiError("Failed to load the files.");
}
},
/**
@@ -180,7 +180,7 @@ export const useFilesStore = defineStore("filesStore", {
}
} else {
Swal.close(); // Close the loading progress bar
apiError(error, "Failed to upload the files.");
apiError("Failed to upload the files.");
}
}
},
@@ -195,7 +195,7 @@ export const useFilesStore = defineStore("filesStore", {
const response = await apiClient.get(api);
this.allUploadDetail = response.data.preview;
} catch (error) {
apiError(error, "Failed to get upload detail.");
apiError("Failed to get upload detail.");
}
},
/**
@@ -223,7 +223,7 @@ export const useFilesStore = defineStore("filesStore", {
uploadFailedSecond(detail);
} else {
Swal.close(); // Close the loading progress bar
apiError(error, "Failed to upload the log files.");
apiError("Failed to upload the log files.");
}
}
},
@@ -247,7 +247,7 @@ export const useFilesStore = defineStore("filesStore", {
this.uploadFileName = null;
await this.fetchAllFiles();
} catch (error) {
apiError(error, "Failed to rename.");
apiError("Failed to rename.");
}
},
/**
@@ -262,7 +262,7 @@ export const useFilesStore = defineStore("filesStore", {
);
this.allDependentsData = response.data;
} catch (error) {
apiError(error, "Failed to get Dependents of the files.");
apiError("Failed to get Dependents of the files.");
}
},
/**
@@ -282,7 +282,7 @@ export const useFilesStore = defineStore("filesStore", {
await this.fetchAllFiles();
await deleteSuccess();
} catch (error) {
apiError(error, "Failed to delete.");
apiError("Failed to delete.");
} finally {
loading.isLoading = false;
}
@@ -300,7 +300,7 @@ export const useFilesStore = defineStore("filesStore", {
try {
await apiClient.delete(api);
} catch (error) {
apiError(error, "Failed to Remove a Deletion Record.");
apiError("Failed to Remove a Deletion Record.");
} finally {
loading.isLoading = false;
}
@@ -325,7 +325,7 @@ export const useFilesStore = defineStore("filesStore", {
link.click();
globalThis.URL.revokeObjectURL(url);
} catch (error) {
apiError(error, "Failed to download.");
apiError("Failed to download.");
}
},
},