diff --git a/resources/js/app.js b/resources/js/app.js index 854bb80..19bcbcf 100644 --- a/resources/js/app.js +++ b/resources/js/app.js @@ -119,15 +119,15 @@ Vue.use(require('vue-pusher'), { } }); -Vue.prototype.$api1 = 'http://localhost:8000' +Vue.prototype.$api1 = 'http://api.arrahn' 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 30ff797..2f4c63a 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; } } diff --git a/resources/js/pages/Detailspelanggan.vue b/resources/js/pages/Detailspelanggan.vue index 27a862f..04e4835 100644 --- a/resources/js/pages/Detailspelanggan.vue +++ b/resources/js/pages/Detailspelanggan.vue @@ -762,7 +762,7 @@ export default { } }, getDataSenaraiSAG: function(pageNumber){ - this.axios.get('http://localhost:8000/admin/customers/' + this.icnoasal + '/gadai/' + this.selected,{params: { + this.axios.get('http://api.arrahn/admin/customers/' + this.icnoasal + '/gadai/' + this.selected,{params: { page: pageNumber }}).then(response => { if(this.selected === 'belum_tebus') @@ -793,7 +793,7 @@ export default { }, searchsag: function(){ - this.axios.get('http://localhost:8000/admin/customers/' + this.icnoasal + '/gadai/' + this.selected,{params: { + this.axios.get('http://api.arrahn/admin/customers/' + this.icnoasal + '/gadai/' + this.selected,{params: { page: 0, search: this.search }}).then(response => {