Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
659 views
in Technique[技术] by (71.8m points)

el-upload如何在二进制流上传前做一次校验?检验传参同样是使用默认的二进制流

目前需要excel文件上传成功前, 校验表单中的内容是否符合要求, 不符合直接打回, 后端给了一个校验接口, 和上传接口的传参一样.返回成功后继续上传.
我想在uploadSuccess的钩子方法中校验, 成功后再次调用this.$refs.xxxx.submit()方法进行二次提交, 可是根本调不起来...求大佬拯救


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

可以再before-upload钩子做判断呀


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...