split per app

This commit is contained in:
2020-08-16 11:48:06 +02:00
parent d3a19c953a
commit c5be16963d
12 changed files with 126 additions and 14 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ export default new Vuex.Store ({
}
},
actions: {
async get_log ({ commit }) {
const log = await fetch ('/log')
async get_log ({ commit }, { app_id }) {
const log = await fetch ('/log', { headers: { app_id } })
.then ((res) => res.json ());
commit ('set_log', log);
}