fix: 修改axios 中 urlPrefix 字段不生效问题 (#1170)

* fix(样式污染): 会污染其他带有srcollbar的组件样式

* fix(axios): urlPrefix 字段传递不生问题效
This commit is contained in:
love-life
2021-09-09 09:41:34 +08:00
committed by GitHub
parent c753d945e0
commit 7df9b51344
3 changed files with 7 additions and 4 deletions

2
types/axios.d.ts vendored
View File

@@ -14,6 +14,8 @@ export interface RequestOptions {
joinPrefix?: boolean;
// Interface address, use the default apiUrl if you leave it blank
apiUrl?: string;
// 请求拼接路径
urlPrefix?: string;
// Error message prompt type
errorMessageMode?: ErrorMessageMode;
// Whether to add a timestamp