File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ export default {
443443 fetchZoneData () {
444444 this .zones = []
445445 const params = {}
446- if (this .resource .zoneid && (this .$route .name === ' deployVirtualMachine' || this .$route .name === ' backup' )) {
446+ if (this .resource .zoneid && (this .$route .name === ' deployVirtualMachine' || this .$route .path . startsWith ( ' / backup' ) )) {
447447 params .id = this .resource .zoneid
448448 }
449449 params .showicon = true
Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ export default {
264264 fetchZoneData () {
265265 this .zones = []
266266 const params = {}
267- if (this .resource .zoneid && (this .$route .name === ' deployVirtualMachine' || this .$route .name === ' backup' )) {
267+ if (this .resource .zoneid && (this .$route .name === ' deployVirtualMachine' || this .$route .path . startsWith ( ' / backup' ) )) {
268268 params .id = this .resource .zoneid
269269 }
270270 params .showicon = true
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ export default {
106106 fetchActionZoneData () {
107107 this .loading = true
108108 const params = {}
109- if ((this .$route .name === ' deployVirtualMachine' || this .$route .name === ' backup' ) && this . resource . zoneid ) {
109+ if (this . resource . zoneid && (this .$route .name === ' deployVirtualMachine' || this .$route .path . startsWith ( ' / backup' )) ) {
110110 params .id = this .resource .zoneid
111111 }
112112 this .actionZoneLoading = true
Original file line number Diff line number Diff line change @@ -640,7 +640,7 @@ export default {
640640 }
641641 } else {
642642 const params = {}
643- if (this .resource .zoneid && (this .$route .name === ' deployVirtualMachine' || this .$route .name === ' backup' )) {
643+ if (this .resource .zoneid && (this .$route .name === ' deployVirtualMachine' || this .$route .path . startsWith ( ' / backup' ) )) {
644644 params .id = this .resource .zoneid
645645 }
646646 params .showicon = true
You can’t perform that action at this time.
0 commit comments