axios-annotations 2.0.0 → 2.0.1
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 +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -115,8 +115,17 @@ ApiCommon.test.get("a","b",null);
|
|
|
115
115
|
]
|
|
116
116
|
}
|
|
117
117
|
```
|
|
118
|
+
tsconfig.json / jsconfig.json
|
|
119
|
+
```json
|
|
120
|
+
{
|
|
121
|
+
"compilerOptions": {
|
|
122
|
+
"experimentalDecorators": true,
|
|
123
|
+
"emitDecoratorMetadata": true
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
118
127
|
|
|
119
|
-
`vue-cli
|
|
128
|
+
`vue-cli`等脚手架已默认支持装饰器,微信小程序说明请拉到末尾。
|
|
120
129
|
<br>接口方法只需要处理和返回参数,并注解参数类型,框架根据注解分拆参数并注入`HTTP`请求。
|
|
121
130
|
|
|
122
131
|
```javascript
|