校验 以 http 或者 https 开头的url
let reUrl = /(http|https):\/\/([\w.]+\/?)\S*/
if (reUrl.test(values.url) === false) {
return this.$message.error('请输入以 http 或者 https 开头的url')
}
越努力越幸运
let reUrl = /(http|https):\/\/([\w.]+\/?)\S*/
if (reUrl.test(values.url) === false) {
return this.$message.error('请输入以 http 或者 https 开头的url')
}