33 lines
994 B
TypeScript
33 lines
994 B
TypeScript
// The Lucia project.
|
|
// Copyright 2023-2026 DSP, inc. All rights reserved.
|
|
// Authors:
|
|
// chiayin.kuo@dsp.im (chiayin), 2023/1/31
|
|
// imacat.yang@dsp.im (imacat), 2023/9/23
|
|
// cindy.chang@dsp.im (Cindy Chang), 2024/5/30
|
|
/**
|
|
* @module stores/mapCompareStore Map comparison store for managing
|
|
* side-by-side process map comparison with insights data.
|
|
*/
|
|
|
|
import { defineStore } from 'pinia';
|
|
|
|
export const useMapCompareStore = defineStore('mapCompareStore', {
|
|
state: () => ({
|
|
routeParam: {
|
|
primaryType: '',
|
|
primaryId: '',
|
|
secondaryType: '',
|
|
secondaryId: '',
|
|
},
|
|
}),
|
|
actions: {
|
|
setCompareRouteParam(primaryType: string, primaryId: string, secondaryType: string, secondaryId: string) {
|
|
this.routeParam = {
|
|
primaryType: primaryType,
|
|
primaryId: primaryId,
|
|
secondaryType: secondaryType,
|
|
secondaryId: secondaryId,
|
|
}
|
|
},
|
|
},
|
|
}); |