component_ryl 1.0.25 → 1.0.26

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 CHANGED
@@ -180,16 +180,28 @@
180
180
  # />
181
181
 
182
182
  # handleImgUpload(blobInfo, success, failure){
183
- # let formdata = new FormData();
184
- # formdata .append("file", blobInfo.blob());
185
- # 接口请求参数为:
186
- # axios({
187
- # ...
188
- # data: formdata
189
- # }).then(res=>{
190
- # success(res.data.url)
191
- # })
183
+ # let formdata = new FormData();
184
+ # formdata.append("image", blobInfo.blob());
185
+ # axios({
186
+ # method: "post",
187
+ # url: process.env.VUE_APP_BASE_URL + "/admin/common/upload",
188
+ # headers: {
189
+ # Authorization: "Bearer " + this.$cookieGet("TOKEN")
190
+ # },
191
+ # data: formdata,
192
+ # }).then((res) => {
193
+ # if (res.data.code != 200) {
194
+ # failure("操作提示: " + res.msg);
195
+ # return;
196
+ # }
197
+ # success(res.data.data.imageUrl);
198
+ # });
192
199
  # }
200
+
201
+ # 其他方法:
202
+ # setContent() 设置值
203
+
204
+ # getContent() 获取值
193
205
 
194
206
  # serve with hot reload at localhost:8080
195
207
  # npm run dev