feat(axios): add withToken option

添加withToken配置,用于控制request是否提交token
This commit is contained in:
无木
2021-06-29 17:31:30 +08:00
parent df0f00085c
commit c99cf5e53f
3 changed files with 11 additions and 1 deletions

2
types/axios.d.ts vendored
View File

@@ -19,6 +19,8 @@ export interface RequestOptions {
// Whether to add a timestamp
joinTime?: boolean;
ignoreCancelToken?: boolean;
// Whether to send token in header
withToken?: boolean;
}
export interface Result<T = any> {