update 重构 彻底删除proxy用法 改为vue3官方推荐写法
This commit is contained in:
11
src/utils/api-types.ts
Normal file
11
src/utils/api-types.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* 与 `src/utils/request` 拦截器一致:resolve 的是若依风格 JSON `{ code, msg, data }`。
|
||||
* axios 1.13 + TS6 下避免从 `axios` 拉已移除的 AxiosPromise。
|
||||
*/
|
||||
export interface RuoYiAjaxResult<T = unknown> {
|
||||
code?: number;
|
||||
msg?: string;
|
||||
data?: T;
|
||||
}
|
||||
|
||||
export type AxiosPromise<T = unknown> = Promise<RuoYiAjaxResult<T>>;
|
||||
Reference in New Issue
Block a user