Commit 3774a9e3 authored by 皮倩雯's avatar 皮倩雯

fix: '修复集成登录url验证http格式bug'

parent 4afefd88
Pipeline #62298 passed with stages
......@@ -389,9 +389,12 @@ const Master = props => {
validator: (rule, value) => {
let aa = form.getFieldValue().qrCodeurl;
let regEn = /^((ht|f)tps?):\/\/([\w-]+(\.[\w-]+)*\/?)+(\?([\w\-\.,@?^=%&:\/~\+#]*)+)?$/;
if (regEn.test(aa) === false) {
return Promise.reject('url必须以http(s)://开头');
if (aa) {
if (regEn.test(aa) === false) {
return Promise.reject('url必须以http(s)://开头');
}
}
return Promise.resolve();
},
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment