From 7e36d080714314eb8e386f0487a05ff644f415ef Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Mon, 15 Aug 2022 01:23:11 +0800 Subject: [PATCH] fix cawangan --- resources/js/app.js | 6 +++--- resources/js/components/Cawangan.vue | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/js/app.js b/resources/js/app.js index b89c723..c76cbaf 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -126,18 +126,18 @@ Vue.use(require('vue-pusher'), { } }); -Vue.prototype.$api1 = 'http://localhost:8000/' +Vue.prototype.$api1 = 'http://api.arrahn/' Vue.prototype.$username = document.querySelector("meta[name='user_name']").getAttribute('content'); Vue.prototype.$userroles = document.querySelector("meta[name='user_roles']").getAttribute('content'); let initial = 'KB2'; -let initialhostname = 'http://localhost:8000/'; +let initialhostname = 'http://api.arrahn/'; const store = new Vuex.Store({ state: { $kodcaw: 'KB2', - $hostname: 'http://localhost:8000/' + $hostname: 'http://api.arrahn/' }, plugins: [createPersistedState()], mutations: { diff --git a/resources/js/components/Cawangan.vue b/resources/js/components/Cawangan.vue index 5511518..bd55359 100644 --- a/resources/js/components/Cawangan.vue +++ b/resources/js/components/Cawangan.vue @@ -84,7 +84,7 @@ case 'JLI': case 'ARP': case '020303':{ - this.sethostname('http://localhost:8000') + this.sethostname('http://api.arrahn') break; } case '010621': @@ -114,7 +114,7 @@ this.sethostname('http://api3.arrahn') break; } - default: this.sethostname('http://localhost:8000') + default: this.sethostname('http://api.arrahn') break; } }