fix:asset添加impi配置 & upload组件改为可拖拽上传 & 系统配置调整
This commit is contained in:
@@ -3,6 +3,7 @@ import ca from "element-ui/src/locale/lang/ca";
|
||||
|
||||
export function host(rule, value, callback) {
|
||||
const hostReg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\:\d{0,5})?$/
|
||||
console.log(value)
|
||||
setTimeout(() => {
|
||||
if (hostReg.test(value)) {
|
||||
callback()
|
||||
|
||||
Reference in New Issue
Block a user