feat: 封装下载hooks

This commit is contained in:
xlsea
2024-09-05 11:06:30 +08:00
parent 824974e904
commit 0c3ea2dc86
11 changed files with 222 additions and 19 deletions

View File

@ -28,4 +28,7 @@ declare namespace CommonType {
/** The id type */
type IdType = string | number;
/** The res error code */
type ErrorCode = '401' | '403' | '404' | 'default';
}

View File

@ -12,6 +12,8 @@ declare global {
$message?: import('naive-ui').MessageProviderInst;
/** Notification instance */
$notification?: import('naive-ui').NotificationProviderInst;
/** Content loading */
$loading?: import('@sa/hooks').LoadingApiInst;
}
interface ViewTransition {