Browse Source

value-otherValue只能有一个值

luolei 4 năm trước cách đây
mục cha
commit
121fb39762
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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 = ''
                         }
                     }
                 }