我在vuejs中使用bootstrap-vue和v-validate,当我想在输入文件中使用验证时,出现以下错误:
[Vue warn]: Error in event handler for "input": "TypeError: files.every is not a function"
代码:
<b-form-file
id="attachment"
name="attachment"
accept="application/zip,image/x-png,image/jpeg"
v-validate="'ext:zip,png,jpeg,jpg|size:10240'">
</b-form-file>