misc: configurator: Switch to basic form after switching VM or HV tabs

Switch to basic form after switching VM or HV tabs to make the basic
form default view.

Tracked-On: #7712
Signed-off-by: Qiang Zhang <qiang4.zhang@intel.com>
This commit is contained in:
Qiang Zhang 2022-06-07 11:25:27 +08:00 committed by acrnsi-robot
parent d5c36632f1
commit 181ab6afea
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@
:currentActiveVMID="activeVMID"
:currentFormSchema="currentFormSchema"
:currentFormData="currentFormData"
ref="ConfigForm"
@deleteVM="deleteVM"
@scenarioConfigFormDataUpdate="scenarioConfigFormDataUpdate"
@ -215,6 +216,7 @@ export default {
},
switchTab(tabVMID) {
this.activeVMID = tabVMID;
this.$refs.ConfigForm.currentFormMode = 'BasicConfigType'
this.updateCurrentFormSchema()
this.updateCurrentFormData()
},