@@ -117,11 +117,11 @@ export interface CustomParamsForm {
}
export interface ProtocolBaseInfo {
- id: number;
+ id?: number;
protocolName: string;
protocolType: string;
deviceType: string;
- deviceTypeId: number;
+ deviceTypeId: number | null;
dataBit: 5 | 6 | 7 | 8;
parityBit: 'N' | 'O' | 'E';
stopBit: '1' | '1.5' | '2';
@@ -14,7 +14,7 @@ import type { DefaultOptionType, SelectValue } from 'ant-design-vue/es/select';
import type { FormRules, ProtocolParamInfo } from '@/types';
interface Props {
- protocolId: number;
+ protocolId?: number;
const props = defineProps<Props>();