File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export default {
156156
157157 this .formRef .value .validate ().then (() => {
158158 const values = toRaw (this .form )
159- if (! this .checkFromTo (values .vlanRangeStart , values .vlanRangeEnd )) {
159+ if (! values . vlanRangeStart || ( values . vlanRangeEnd && ! this .checkFromTo (values .vlanRangeStart , values .vlanRangeEnd ) )) {
160160 this .validStatus = ' error'
161161 this .validMessage = this .$t (' message.error.vlan.range' )
162162 return
@@ -185,7 +185,7 @@ export default {
185185 toVal = value
186186 fromVal = this .form [rule .compare ]
187187 }
188- if (! this .checkFromTo (fromVal, toVal)) {
188+ if (fromVal && toVal && ! this .checkFromTo (fromVal, toVal)) {
189189 this .validStatus = ' error'
190190 this .validMessage = this .$t (' message.error.vlan.range' )
191191 }
You can’t perform that action at this time.
0 commit comments