updated db import, views, and api

This commit is contained in:
Gregorio Chiko Putra
2019-05-11 12:41:25 +07:00
parent e2ce3293e1
commit c66f26457e
8 changed files with 621 additions and 571 deletions

View File

@@ -3,7 +3,9 @@ import AccessLog from "./AccessLog"
var model = {
current: {},
error: {},
cariData: data => {
model.current = {};
m.request({
method: 'post',
url: '/api/siswa',
@@ -12,7 +14,9 @@ var model = {
.then(response => {
model.current = response;
AccessLog.fetch();
console.log(model.current);
})
.catch(e => {
model.error = JSON.parse(e.message);
});
},
}