Standardize store exports to named useXxxStore convention
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import MapPathStore from '@/stores/mapPathStore';
|
||||
import { useMapPathStore } from '@/stores/mapPathStore';
|
||||
import { mapState, mapActions, } from 'pinia';
|
||||
export default {
|
||||
props: {
|
||||
@@ -108,7 +108,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(MapPathStore, ['isBPMNOn']),
|
||||
...mapState(useMapPathStore, ['isBPMNOn']),
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
@@ -168,7 +168,7 @@ export default {
|
||||
this.setIsBPMNOn(true);
|
||||
this.switchMapType('bpmn');
|
||||
},
|
||||
...mapActions(MapPathStore, ['setIsBPMNOn',]),
|
||||
...mapActions(useMapPathStore, ['setIsBPMNOn',]),
|
||||
},
|
||||
mounted() {
|
||||
this.dataLayerType = 'freq';
|
||||
|
||||
Reference in New Issue
Block a user