Discover: sidebar insight done
This commit is contained in:
@@ -14,6 +14,8 @@ export default defineStore('allMapDataStore', {
|
||||
logId: null,
|
||||
allProcessMap: {},
|
||||
allBpmn: {},
|
||||
allStats: {},
|
||||
allInsights: {},
|
||||
httpStatus: 200,
|
||||
}),
|
||||
getters: {
|
||||
@@ -22,6 +24,12 @@ export default defineStore('allMapDataStore', {
|
||||
},
|
||||
bpmn: state => {
|
||||
return state.allBpmn;
|
||||
},
|
||||
stats: state => {
|
||||
return state.allStats;
|
||||
},
|
||||
insights: state => {
|
||||
return state.allInsights;
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
@@ -36,6 +44,8 @@ export default defineStore('allMapDataStore', {
|
||||
const response = await this.$axios.get(api);
|
||||
this.allProcessMap = response.data.process_map;
|
||||
this.allBpmn = response.data.bpmn;
|
||||
this.allStats = response.data.stats;
|
||||
this.allInsights = response.data.insights;
|
||||
|
||||
if(this.httpStatus < 300) loading.isLoading = false;
|
||||
} catch(error) {
|
||||
|
||||
Reference in New Issue
Block a user