basic compare map routing
This commit is contained in:
@@ -222,6 +222,7 @@
|
||||
</template>
|
||||
<script>
|
||||
import { storeToRefs, mapActions, } from 'pinia';
|
||||
import MapCompareStore from '@/stores/mapCompareStore';
|
||||
import LoginStore from '@/stores/login.ts';
|
||||
import filesStore from '@/stores/files.js';
|
||||
import AllMapDataStore from '@/stores/allMapData.js';
|
||||
@@ -239,6 +240,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
mapCompareStore: MapCompareStore(),
|
||||
isActive: null,
|
||||
isHover: null,
|
||||
switchListOrGrid: false,
|
||||
@@ -565,6 +567,7 @@
|
||||
const secondaryId = this.secondaryDragData[0].id;
|
||||
const params = { primaryType: primaryType, primaryId: primaryId, secondaryType: secondaryType, secondaryId: secondaryId };
|
||||
|
||||
this.mapCompareStore.setCompareRouteParam(primaryType, primaryId, secondaryType, secondaryId);
|
||||
this.$router.push({name: 'CompareDashboard', params: params});
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user