axios-annotations 1.1.4 → 1.1.5
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/README.md +13 -11
- package/package.json +1 -1
- package/lib/plugins/cache/index.js +0 -1
package/README.md
CHANGED
|
@@ -579,19 +579,21 @@ npm install axios@0.21.0
|
|
|
579
579
|
npm install axios-miniprogram-adapter
|
|
580
580
|
```
|
|
581
581
|
|
|
582
|
-
+ 编译报错 `module is not defined`, 在`app.js
|
|
582
|
+
+ 编译报错 `module is not defined`, 在`app.js`头部补充缺失组件的声明:
|
|
583
583
|
|
|
584
584
|
```javascript
|
|
585
|
-
import
|
|
586
|
-
import
|
|
587
|
-
import
|
|
588
|
-
import
|
|
589
|
-
import
|
|
590
|
-
import
|
|
591
|
-
import
|
|
592
|
-
import
|
|
593
|
-
import
|
|
594
|
-
import
|
|
585
|
+
import "axios-annotations/core/service";
|
|
586
|
+
import "axios-annotations/decorator/request-mapping";
|
|
587
|
+
import "axios-annotations/decorator/get-mapping";
|
|
588
|
+
import "axios-annotations/decorator/post-mapping";
|
|
589
|
+
import "axios-annotations/decorator/put-mapping";
|
|
590
|
+
import "axios-annotations/decorator/delete-mapping";
|
|
591
|
+
import "axios-annotations/decorator/patch-mapping";
|
|
592
|
+
import "axios-annotations/decorator/request-param";
|
|
593
|
+
import "axios-annotations/decorator/request-body";
|
|
594
|
+
import "axios-annotations/decorator/request-header";
|
|
595
|
+
import "axios-annotations/decorator/request-config";
|
|
596
|
+
import "axios-annotations/decorator/request-with";
|
|
595
597
|
```
|
|
596
598
|
|
|
597
599
|
+ 更新开发工具以支持装饰器语法。
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";function CachePlugin(){return function(e){var t=e.axios.defaults.adapter;e.axios.defaults.adapter=function(e){return t(e)}}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=CachePlugin;
|