Skip to content

Commit 4251183

Browse files
committed
L2 NIC linkstate 저장 키를 소문자로 통일해 false 값 전달되게 수정
1 parent 001a0cc commit 4251183

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ui/src/views/compute/wizard/NetworkConfiguration.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
</template>
7676
<template v-if="column.key === 'linkState'">
7777
<a-form-item v-if="record.type === 'L2'" :name="'linkState' + record.id">
78-
<a-switch v-model:checked="form[`linkState` + record.id]" @change="($event) => updateNetworkData('linkState', record.id, $event)" style="margin-bottom: 30px"/>
78+
<a-switch v-model:checked="form[`linkState` + record.id]" @change="($event) => updateNetworkData('linkstate', record.id, $event)" style="margin-bottom: 30px"/>
7979
</a-form-item>
8080
</template>
8181
</template>
@@ -219,8 +219,9 @@ export default {
219219
form[macAddressKey] = this.preFillContent.macAddressArray[presetMacAddressIndex]
220220
presetMacAddressIndex++
221221
}
222-
console.log('record.linkState :>> ', record.linkState)
223-
form[linkState] = record.linkState === undefined ? true : record.linkState
222+
form[linkState] = record.linkstate === undefined
223+
? (record.linkState === undefined ? true : record.linkState)
224+
: record.linkstate
224225
})
225226
this.form = reactive(form)
226227
this.rules = reactive(rules)

0 commit comments

Comments
 (0)