Check ulang integrasi api dan master data, master config dan drp

This commit is contained in:
Titan Hadiyan
2023-06-01 11:14:45 +07:00
parent 0cd6aa1189
commit 9db7846edb
25 changed files with 106 additions and 707 deletions

View File

@@ -113,7 +113,7 @@ const instansiOptions = new CustomStore({
key: 'id',
load:() => {
return fetch(URL_instansi+'?size=1000')
return fetch(URL_instansi+process.env.VUE_APP_PAGE_SIZE)
.then((response) => response.json())
.then(response => {
console.log(response.data);
@@ -144,7 +144,7 @@ const dataSource = new CustomStore({
key: 'id',
load: () => {
return fetch(URL+'?size=1000')
return fetch(URL+process.env.VUE_APP_PAGE_SIZE)
.then((response) => response.json())
.catch(() => { throw new Error('Terdapat kesalahan memuat data'); });
},