{"action":"created","issue":{"url":"https://api.github.com/repos/ElemeFE/element/issues/1520","repository_url":"https://api.github.com/repos/ElemeFE/element","labels_url":"https://api.github.com/repos/ElemeFE/element/issues/1520/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/element/issues/1520/comments","events_url":"https://api.github.com/repos/ElemeFE/element/issues/1520/events","html_url":"https://github.com/ElemeFE/element/issues/1520","id":193066012,"number":1520,"title":"建议带有upload的表单验证操作resetFields时候，把cover也删掉","user":{"login":"annieh12","id":13465448,"avatar_url":"https://avatars.githubusercontent.com/u/13465448?v=3","gravatar_id":"","url":"https://api.github.com/users/annieh12","html_url":"https://github.com/annieh12","followers_url":"https://api.github.com/users/annieh12/followers","following_url":"https://api.github.com/users/annieh12/following{/other_user}","gists_url":"https://api.github.com/users/annieh12/gists{/gist_id}","starred_url":"https://api.github.com/users/annieh12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/annieh12/subscriptions","organizations_url":"https://api.github.com/users/annieh12/orgs","repos_url":"https://api.github.com/users/annieh12/repos","events_url":"https://api.github.com/users/annieh12/events{/privacy}","received_events_url":"https://api.github.com/users/annieh12/received_events","type":"User","site_admin":false},"labels":[{"id":435935240,"url":"https://api.github.com/repos/ElemeFE/element/labels/feature%20request","name":"feature request","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-02T09:04:19Z","updated_at":"2016-12-02T09:34:29Z","closed_at":null,"body":"<!--\r\n提交 issue 前请务必查看 FAQ：https://github.com/ElemeFE/element/blob/master/FAQ.md。如果你的问题可以在 FAQ 中找到解决方案，我们会直接关闭 issue。\r\n -->\r\n\r\n<!--\r\nissue 仅用于提交 bug 或 feature 以及设计相关的内容，其它疑问请到 gitter 聊天室找社区里面的小伙伴聊一聊：https://gitter.im/ElemeFE/element\r\n -->\r\n \r\n<!--\r\nIssues are exclusively for bug reports and feature requests. For other questions, please visit gitter: https://gitter.im/ElemeFE/element\r\n-->\r\n\r\n<!--\r\nThank you for contributing! Please carefully read the following before opening your issue.\r\n -->\r\n\r\n### Reproduction Link\r\n<!-- A minimal JSBin, JSFiddle, Codepen, or a GitHub repository that can reproduce the bug. -->\r\n<!-- https://codepen.io/anon/pen/ozYpNA -->\r\n<!-- https://jsfiddle.net/gmve9d3p/ -->\r\n我的demo：[http://jsfiddle.net/hxrwith/jfaL2h55/](http://jsfiddle.net/hxrwith/jfaL2h55/)\r\n\r\n### What is actually happening?\r\n问题有两个：\r\n1、要是先handleSubmit，出现了错误提示后，再上传图片的话，这个错误提示并没有消失；\r\n2、已经上传图片了，这时候handleReset的话，cover依然存在。\r\n\r\n### What is Expected?\r\n1、这个错误提示不知道能不能实时更新，希望能做到实时响应吧；\r\n2、建议带有upload的表单验证操作resetFields时候，把cover也删掉。\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ElemeFE/element/issues/comments/264412005","html_url":"https://github.com/ElemeFE/element/issues/1520#issuecomment-264412005","issue_url":"https://api.github.com/repos/ElemeFE/element/issues/1520","id":264412005,"user":{"login":"baiyaaaaa","id":3655403,"avatar_url":"https://avatars.githubusercontent.com/u/3655403?v=3","gravatar_id":"","url":"https://api.github.com/users/baiyaaaaa","html_url":"https://github.com/baiyaaaaa","followers_url":"https://api.github.com/users/baiyaaaaa/followers","following_url":"https://api.github.com/users/baiyaaaaa/following{/other_user}","gists_url":"https://api.github.com/users/baiyaaaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/baiyaaaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baiyaaaaa/subscriptions","organizations_url":"https://api.github.com/users/baiyaaaaa/orgs","repos_url":"https://api.github.com/users/baiyaaaaa/repos","events_url":"https://api.github.com/users/baiyaaaaa/events{/privacy}","received_events_url":"https://api.github.com/users/baiyaaaaa/received_events","type":"User","site_admin":false},"created_at":"2016-12-02T09:34:29Z","updated_at":"2016-12-02T09:34:29Z","body":"@annieh12 你可以通过upload实例的clearFiles方法来把当前文件列表清空。"}}
{"actor":{"display_login":"baiyaaaaa"}}