Browse Source

value-otherValue只能有一个值

luolei 4 years ago
parent
commit
121fb39762
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/store/reducers/inspect.js

+ 2 - 0
src/store/reducers/inspect.js

@@ -119,8 +119,10 @@ export default (state = initSearchList, action) => {
                     }else{//小项该数值
                         if(isNumber(action.value-0)){
                             item.value = action.value
+                            item.otherValue = ''
                         }else{
                             item.otherValue = action.value
+                            item.value = ''
                         }
                     }
                 }