feima-shortcuts 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/generateApi/index.js +2 -2
package/package.json
CHANGED
package/src/generateApi/index.js
CHANGED
|
@@ -143,16 +143,16 @@ export const request = <T>(
|
|
|
143
143
|
): CancelablePromise<T> => {
|
|
144
144
|
return new CancelablePromise((resolve, reject, onCancel) => {
|
|
145
145
|
const url = \`\${config.BASE}\${options.path}\`;
|
|
146
|
-
|
|
146
|
+
|
|
147
147
|
const source = service.CancelToken.source();
|
|
148
148
|
|
|
149
149
|
onCancel(() => source.cancel("The user aborted a request."));
|
|
150
150
|
|
|
151
151
|
service
|
|
152
152
|
.request({
|
|
153
|
+
...options,
|
|
153
154
|
url,
|
|
154
155
|
data: options.body,
|
|
155
|
-
...options,
|
|
156
156
|
cancelToken: source.token,
|
|
157
157
|
})
|
|
158
158
|
.then((data: any) => {
|