fix: hostId 变更类型和字段名

This commit is contained in:
TsMask
2025-02-26 09:51:34 +08:00
parent cdc31a9ced
commit 7429a55734
14 changed files with 103 additions and 108 deletions

View File

@@ -118,7 +118,7 @@ let modalState: ModalStateType = reactive({
// 主机
hosts: [
{
hostId: undefined,
id: undefined,
hostType: 'ssh',
groupId: '1',
title: 'SSH_NE_22',
@@ -132,7 +132,7 @@ let modalState: ModalStateType = reactive({
remark: '',
},
{
hostId: undefined,
id: undefined,
hostType: 'telnet',
groupId: '1',
title: 'Telnet_NE_4100',
@@ -292,7 +292,7 @@ function fnNeTypeChange(v: any) {
// UPF标准版本可支持5002
if (hostsLen === 2 && v === 'UPF') {
modalState.from.hosts.push({
hostId: undefined,
id: undefined,
hostType: 'telnet',
groupId: '1',
title: 'Telnet_NE_5002',
@@ -307,7 +307,7 @@ function fnNeTypeChange(v: any) {
// UDM可支持6379
if (hostsLen === 2 && v === 'UDM') {
modalState.from.hosts.push({
hostId: undefined,
id: undefined,
hostType: 'redis',
groupId: '1',
title: 'REDIS_NE_6379',