update modbus db and view
This commit is contained in:
@@ -101,6 +101,7 @@ class ModbusPage extends React.Component {
|
||||
submitIOModal = (type, data) => {
|
||||
let {i18n} = this.props;
|
||||
if((type == 1 && !data.id) || !('addr' in data) || !('num' in data) || !('type' in data)) return this.props.showDialog(i18n.t('tip.input_empty'));
|
||||
if(data.datalen == 0) return this.props.showDialog('資料長度不能為0');
|
||||
|
||||
data.devuid = this.state.showDev;
|
||||
if(type == 1){
|
||||
|
||||
Reference in New Issue
Block a user