|
@@ -352,8 +352,10 @@ export default {
|
|
) {
|
|
) {
|
|
isSave = true;
|
|
isSave = true;
|
|
} else {
|
|
} else {
|
|
- this.$message.error("请输入正确IP段,并以;号隔开");
|
|
|
|
- isSave = false;
|
|
|
|
|
|
+ if (ipArr.length != 0) {
|
|
|
|
+ this.$message.error("请输入正确IP段,并以;号隔开");
|
|
|
|
+ isSave = false;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.$refs["ruleForm"].validate((valid) => {
|
|
this.$refs["ruleForm"].validate((valid) => {
|