mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 封装下载hooks
This commit is contained in:
3
src/typings/common.d.ts
vendored
3
src/typings/common.d.ts
vendored
@ -28,4 +28,7 @@ declare namespace CommonType {
|
||||
|
||||
/** The id type */
|
||||
type IdType = string | number;
|
||||
|
||||
/** The res error code */
|
||||
type ErrorCode = '401' | '403' | '404' | 'default';
|
||||
}
|
||||
|
2
src/typings/global.d.ts
vendored
2
src/typings/global.d.ts
vendored
@ -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 {
|
||||
|
Reference in New Issue
Block a user