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:
+9
-9
@@ -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.");
|
||||
}
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user