@@ -1554,15 +1554,12 @@ export default {
15541554 })
15551555 },
15561556 async fetchData () {
1557- await this .fetchZones (null , null )
1557+ this .fetchZones (null , null )
15581558 _ .each (this .params , (param , name ) => {
15591559 if (param .isLoad ) {
15601560 this .fetchOptions (param, name)
15611561 }
15621562 })
1563- if (this .dataPreFill .zoneid ) {
1564- this .selectPreFillZone (this .dataPreFill .zoneid )
1565- }
15661563 this .fetchBootTypes ()
15671564 this .fetchBootModes ()
15681565 this .fetchInstaceGroups ()
@@ -1591,10 +1588,6 @@ export default {
15911588 }
15921589 this .showOverrideDiskOfferingOption = val
15931590 },
1594- async selectPreFillZone (zoneId ) {
1595- this .fillValue (' zoneid' )
1596- this .onSelectZoneId (zoneId)
1597- },
15981591 fetchBootTypes () {
15991592 this .options .bootTypes = [
16001593 { id: ' BIOS' , description: ' BIOS' },
@@ -2183,7 +2176,9 @@ export default {
21832176
21842177 if (name === ' zones' ) {
21852178 let zoneid = ' '
2186- if (this .$route .query .zoneid ) {
2179+ if (this .dataPreFill .zoneid ) {
2180+ zoneid = this .dataPreFill .zoneid
2181+ } else if (this .$route .query .zoneid ) {
21872182 zoneid = this .$route .query .zoneid
21882183 } else if (this .options .zones .length === 1 ) {
21892184 zoneid = this .options .zones [0 ].id
0 commit comments