Standardize store exports to named useXxxStore convention

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 13:25:00 +08:00
parent 147b16ca34
commit 90048d0505
69 changed files with 241 additions and 241 deletions

View File

@@ -243,8 +243,8 @@
<script>
import { computed, ref, } from 'vue';
import PageAdmin from '@/stores/pageAdmin';
import MapPathStore from '@/stores/mapPathStore';
import { usePageAdminStore } from '@/stores/pageAdmin';
import { useMapPathStore } from '@/stores/mapPathStore';
import { getTimeLabel } from '@/module/timeLabel.js';
import getMoment from 'moment';
import i18next from '@/i18n/i18n';
@@ -268,8 +268,8 @@ export default {
}
},
setup(props){
const pageAdmin = PageAdmin();
const mapPathStore = MapPathStore();
const pageAdmin = usePageAdminStore();
const mapPathStore = useMapPathStore();
const activeTrace = ref(0);
const currentMapFile = computed(() => pageAdmin.currentMapFile);