From 61725b8b1e5d62687e2f31f31808075b9396112c Mon Sep 17 00:00:00 2001
From: wzy-warehouse <18135009705@163.com>
Date: Tue, 14 Apr 2026 08:08:01 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9F=BA=E7=A1=80=E7=9A=84?=
=?UTF-8?q?=E4=B8=80=E4=BA=9B=E9=85=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 2 +-
.env.production | 2 +-
src/api/api.ts | 2 +-
src/api/hidden-danger-spots.ts | 2 +-
.../rain-earthquake/BasicComponent.vue | 2 +-
.../DisasterChainPointComponent.vue | 12 +--
.../rain-earthquake/HiddenPointComponent.vue | 2 +-
.../earthquake/useEarthquakeDisasterChain.ts | 82 +++++++++++++++++++
src/hooks/earthquake/useEarthquakeLegend.ts | 18 ++++
src/hooks/rainstorm/useRainDisasterChain.ts | 25 ++----
src/types/common/DisasterType.ts | 8 +-
src/utils/utils.ts | 2 +-
src/views/home/earthquake/EarthquakeView.vue | 39 ++++++++-
src/views/home/rainstorm/RainstormView.vue | 14 +++-
typedoc.json | 3 +-
15 files changed, 179 insertions(+), 36 deletions(-)
create mode 100644 src/hooks/earthquake/useEarthquakeDisasterChain.ts
create mode 100644 src/hooks/earthquake/useEarthquakeLegend.ts
diff --git a/.env.development b/.env.development
index 1e1a148..4d67a05 100644
--- a/.env.development
+++ b/.env.development
@@ -2,4 +2,4 @@ NEW_FILE_CODE
VITE_BACKEND_BASE_URL=http://localhost:8081
-START_PORT=80
\ No newline at end of file
+START_PORT=81
\ No newline at end of file
diff --git a/.env.production b/.env.production
index 92783b3..0bcd24d 100644
--- a/.env.production
+++ b/.env.production
@@ -1,4 +1,4 @@
NEW_FILE_CODE
VITE_BACKEND_BASE_URL=http://localhost:8080
-START_PORT=81
\ No newline at end of file
+START_PORT=80
\ No newline at end of file
diff --git a/src/api/api.ts b/src/api/api.ts
index e81819b..004ba16 100644
--- a/src/api/api.ts
+++ b/src/api/api.ts
@@ -1,4 +1,4 @@
-import type { DisasterType } from '@/types/common/DisasterType'
+import type { DisasterType } from '@/types/common/DisasterType.ts'
import { getSm2PublicKey } from './crypto'
import { getBasePoins as getHiddenDangerBasePoints, getPointDetailById as getHiddenDangerPointDetailById} from './hidden-danger-spots'
import { getBasePoins as getRiskBasePoints, getPointDetailById as getRiskPointDetailById} from './risk-spots'
diff --git a/src/api/hidden-danger-spots.ts b/src/api/hidden-danger-spots.ts
index 2e1d6be..f39be96 100644
--- a/src/api/hidden-danger-spots.ts
+++ b/src/api/hidden-danger-spots.ts
@@ -1,6 +1,6 @@
import type { ApiResponse } from "@/types/ApiResponse"
import type { XianHiddenDangerSpots } from "@/types/base/XianHiddenDangerSpots"
-import type { DisasterType } from "@/types/common/DisasterType"
+import type { DisasterType } from "@/types/common/DisasterType.ts"
import httpInstance from "@/utils/request/http"
/**
diff --git a/src/component/rain-earthquake/BasicComponent.vue b/src/component/rain-earthquake/BasicComponent.vue
index 2736ba1..26a4c6d 100644
--- a/src/component/rain-earthquake/BasicComponent.vue
+++ b/src/component/rain-earthquake/BasicComponent.vue
@@ -17,7 +17,7 @@
diff --git a/src/views/home/rainstorm/RainstormView.vue b/src/views/home/rainstorm/RainstormView.vue
index 370e64b..bcd4296 100644
--- a/src/views/home/rainstorm/RainstormView.vue
+++ b/src/views/home/rainstorm/RainstormView.vue
@@ -5,7 +5,6 @@
:key="route.fullPath"
/>
-
{
+ console.log('条件改变');
+ },
+ { deep: true }
+ );
diff --git a/typedoc.json b/typedoc.json
index d225439..5da7ca0 100644
--- a/typedoc.json
+++ b/typedoc.json
@@ -4,7 +4,8 @@
"api",
"hooks",
"utils",
- "stores"
+ "stores",
+ "types"
],
"out": "docs",
"name": "西安应急多灾种灾害链分析系统 API 文档",