integrate telemetry module #12
This commit is contained in:
@@ -23,6 +23,7 @@ export default {
|
||||
async mounted(){
|
||||
if (this.id && this.id != 'add') {
|
||||
this.object = (await this.$api.game.load(this.id)).data;
|
||||
//this.$api.user.tm('test', 'test', {data: 'test'})
|
||||
}
|
||||
this.scenarios = (await this.$api.scenario.search()).data.data;
|
||||
},
|
||||
|
||||
@@ -62,6 +62,11 @@ export default {
|
||||
async remove(id){
|
||||
return await $ax.delete(`/game/${id}`)
|
||||
}
|
||||
},
|
||||
user:{
|
||||
async tm(action, object, data){
|
||||
return await $ax.post('/user/tm', {action, object, data});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user