重构风险点隐患点显示逻辑

This commit is contained in:
wzy-warehouse
2026-04-11 18:58:43 +08:00
parent e17a73537c
commit 824c980dbc
15 changed files with 320 additions and 79 deletions
+5 -1
View File
@@ -1,12 +1,16 @@
<template>
<div>
<BasicComponent :disaster-type="DisasterType.EARTHQUAKE" :key="DisasterType.EARTHQUAKE"/>
<BasicComponent :disaster-type="DisasterType.EARTHQUAKE" :key="route.fullPath"/>
</div>
</template>
<script setup lang="ts">
import BasicComponent from '@/component/rain-earthquake/BasicComponent.vue';
import { DisasterType } from '@/types/common/DisasterType';
import { useRoute } from 'vue-router';
const route = useRoute();
</script>
<style scoped></style>
+4 -1
View File
@@ -1,12 +1,15 @@
<template>
<div>
<BasicComponent :disaster-type="DisasterType.RAINSTORM" :key="DisasterType.EARTHQUAKE"/>
<BasicComponent :disaster-type="DisasterType.RAINSTORM" :key="route.fullPath"/>
</div>
</template>
<script setup lang="ts">
import BasicComponent from '@/component/rain-earthquake/BasicComponent.vue';
import { DisasterType } from '@/types/common/DisasterType';
import { useRoute } from 'vue-router';
const route = useRoute();
</script>
<style scoped></style>