瀏覽代碼

value-otherValue只能有一个值

luolei 4 年之前
父節點
當前提交
121fb39762
共有 1 個文件被更改,包括 2 次插入0 次删除
  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 = ''
                         }
                     }
                 }