feat: sync-camera-result-modal

This commit is contained in:
yangsy
2025-12-03 16:48:33 +08:00
parent a215f2e391
commit 8e9bd75067
9 changed files with 129 additions and 4 deletions

View File

@@ -5,7 +5,7 @@ function renderIcon(icon: Component): () => VNode {
</script>
<script setup lang="ts">
import { SettingsDrawer } from '@/components';
import { SettingsDrawer, SyncCameraResultModal } from '@/components';
import { useStompClient } from '@/composables';
import { useLineStationsQuery } from '@/composables';
import { LINE_STATIONS_QUERY_KEY, LINE_DEVICES_QUERY_KEY, LINE_ALARMS_QUERY_KEY } from '@/constants';
@@ -29,7 +29,7 @@ import { storeToRefs } from 'pinia';
import { computed, h, onBeforeMount, ref, watch, type Component, type VNode } from 'vue';
import { RouterLink, useRoute, useRouter } from 'vue-router';
useStompClient();
const { syncCameraResult, afterCheckSyncCamera } = useStompClient();
const userStore = useUserStore();
const { userInfo } = storeToRefs(userStore);
@@ -205,7 +205,10 @@ const openSettingsDrawer = () => {
</NLayout>
</NLayout>
</NScrollbar>
<SettingsDrawer v-model:show="settingsDrawerShow" />
<SyncCameraResultModal :sync-camera-result="syncCameraResult" @after-leave="afterCheckSyncCamera" />
</template>
<style scoped lang="scss">