From d8cc08d09a76ff4c482ecbb9d717cc0d1d1d6948 Mon Sep 17 00:00:00 2001 From: Hafifie PKB Date: Wed, 12 Jun 2024 11:22:15 +0800 Subject: [PATCH] fix cawangan --- resources/js/components/Cawangan.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/resources/js/components/Cawangan.vue b/resources/js/components/Cawangan.vue index d83878b..a9d3621 100644 --- a/resources/js/components/Cawangan.vue +++ b/resources/js/components/Cawangan.vue @@ -77,10 +77,13 @@ pembahagiancawangan: function(cawangannama){ switch (cawangannama) { case 'KB2': - case 'WCY': case '1STOP': + case 'WB':{ + this.sethostname(process.env.MIX_API_URL); + break; + } + case 'WCY': case '020301': - case 'WB': case 'ALS': case '020306': case 'ARM': @@ -90,7 +93,7 @@ case 'JLI': case 'ARP': case '020303':{ - this.sethostname(process.env.MIX_API_URL); + this.sethostname(process.env.MIX_API_URL_ZONE1); break; } case '010621': @@ -104,7 +107,7 @@ case '011013': case '011412':{ // this.$hostname = 'http://api_arrahn' - this.sethostname(process.env.MIX_API_URL); + this.sethostname(process.env.MIX_API_URL_ZONE2); break; } case '011229': @@ -117,7 +120,7 @@ case '011237': case '011233':{ // this.$hostname = 'http://api3.arrahn' - this.sethostname(process.env.MIX_API_URL); + this.sethostname(process.env.MIX_API_URL_ZONE3); break; }