mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-23 12:27:48 +00:00
ignore canceled error (#7864)
Co-authored-by: zhouwenxuan <aries@Mac.local>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import axios from 'axios';
|
||||
import { mediaUrl, gettext, serviceURL, siteRoot, isPro, fileAuditEnabled, canGenerateShareLink, canGenerateUploadLink, shareLinkPasswordMinLength, username, folderPermEnabled, onlyofficeConverterExtensions, enableSeadoc, enableRepoSnapshotLabel,
|
||||
enableResetEncryptedRepoPassword, isEmailConfigured, isSystemStaff,
|
||||
enableOnlyoffice, onlyofficeEditFileExtension,
|
||||
@@ -1997,3 +1998,7 @@ export const throttle = (func, delay) => {
|
||||
export const getType = (value) => {
|
||||
return Object.prototype.toString.call(value).slice(8, -1);
|
||||
};
|
||||
|
||||
export const isCanceled = (error) => {
|
||||
return axios.isCancel(error);
|
||||
};
|
||||
|
Reference in New Issue
Block a user