fix: view and edit mode for l2vlan trunk (#563)

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee 2025-10-20 14:52:32 +08:00 committed by GitHub
parent ee8bb21a10
commit 1a3822881e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,10 +171,10 @@ export default {
isL2VlanTrunkMode() {
if (this.isView) {
return this.value.vlanType === L2VLAN && this.l2VlanMode === TRUNK;
return this.value.vlanType === L2TRUNK_VLAN && this.l2VlanMode === TRUNK;
}
return this.type === L2VLAN && this.l2VlanMode === TRUNK;
return this.type === L2TRUNK_VLAN && this.l2VlanMode === TRUNK;
},
isL2VlanAccessMode() {