mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-09 14:40:27 +08:00
types: 封装通用请求类型,减少重复类型定义
This commit is contained in:
6
types/global.d.ts
vendored
6
types/global.d.ts
vendored
@@ -205,4 +205,10 @@ declare global {
|
||||
touched?: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
/**通用请求响应类型 */
|
||||
interface ResponseResult<T> {
|
||||
success: boolean;
|
||||
data?: T;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user