Vuejs2 VeeValidate-如何验证应使用http的URL://
我已尝试通过以下方式验证我的输入:Vuejs2 VeeValidate-如何验证应使用http的URL://,vuejs2,vee-validate,Vuejs2,Vee Validate,我已尝试通过以下方式验证我的输入: <input type="text" name="webhookURL" placeholder="Enter webhook URL" class="text-input" v-validate="'required|url'" /> 但如果我像这样填写输入,则返回true:google.com, 因此,如果我要这样填写(使用http://或https://),我需要验证返回true您必须
<input
type="text"
name="webhookURL"
placeholder="Enter webhook URL"
class="text-input"
v-validate="'required|url'"
/>
但如果我像这样填写输入,则返回true:google.com,
因此,如果我要这样填写(使用http://或https://),我需要验证返回true您必须使用
require\u协议
<input v-validate="{url: {require_protocol: true }}"