mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-11-08 18:34:44 +08:00
routine update
This commit is contained in:
@@ -34,13 +34,15 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
1、调整上传地址,如:
|
1、修改【图片】【文件】组件的上传地址为OpenAuth.WebApi的上传接口,即:
|
||||||
|
|
||||||
```
|
```
|
||||||
http://localhost:52789/api/Files/UploadWithFormData
|
http://xx.xxx.xx.xxx:52789/api/Files/UploadWithFormData
|
||||||
```
|
```
|
||||||
|
当然也可以配置云服务器的上传接口,或其他自己开发的上传接口。具体参考:[https://www.yuque.com/visualdev/vform/urf1hz](https://www.yuque.com/visualdev/vform/urf1hz)
|
||||||
|
|
||||||
2、修改回调:
|
|
||||||
|
2、修改组件的onUploadSucess事件,添加以下代码将接口返回的数据转化为vform可识别的数据:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
var imgServerIp ="http://localhost:52789"; //图片服务器IP
|
var imgServerIp ="http://localhost:52789"; //图片服务器IP
|
||||||
|
|||||||
Reference in New Issue
Block a user