New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
上传组件 upload 代理怎么设置 #892
Comments
@chenshuai2144 这个也试了 |
我看看你的配置 |
你好,下面的codepen是直接在 upload的action里写完整连接, |
我这里成功了 返回了一个正在处理 |
嗯。后端是php的。 |
呃呃呃 ! 默认的api是返回一个url 。而且你可能需要设置一下 data属性 |
嗯 官网的例子 第一次是没有传参的。 不知道官网的例子为什么会请求2次呢。 |
你好,感谢回复 |
问题解决了
|
学习一个 markdown 语法 |
如果需要同时上传附件、提交表单,大家是分两步还是一步直接完成呢? |
但是打包的话 代理这里就没用了啊 |
用upload上传了图片,然后提调表单希望只提交file返回数据中的一条后台数据,请问能怎么去处理呢? |
我的 组件里的配置是:
const uploadProps = {
action: "/upload"
name: 'Filedata'
}
请问是在 roadhogrc.mock.js
里 设置
const proxy = {
'POST /upload': "http://upload-api.***.com/upload.php/",
}
不起作用呀。求教。
The text was updated successfully, but these errors were encountered: