diff --git a/.gitignore b/.gitignore index ac724d4..86f2c24 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,6 @@ dist-ssr *.sln *.sw? /docs/ +auto-imports.d.ts +components.d.ts +pnpm-lock.yaml diff --git a/package.json b/package.json index 57909ea..dd58b4a 100644 --- a/package.json +++ b/package.json @@ -28,6 +28,7 @@ "devDependencies": { "@tsconfig/node22": "^22.0.2", "@types/node": "^24.12.2", + "@types/proj4": "^2.19.0", "@vitejs/plugin-vue": "^6.0.5", "@vue/eslint-config-prettier": "^10.2.0", "@vue/eslint-config-typescript": "^14.6.0", diff --git a/src/api/api.ts b/src/api/api.ts index 30ce189..e770c17 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -2,7 +2,7 @@ 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' -import { getBasePoins as getHospitalsBasePoints, getPointDetailById as getHospitalsPointDetailById} from './hospitals' +import { getBasePoints as getHospitalsBasePoints, getPointDetailById as getHospitalsPointDetailById} from './hospitals' import { getBasePoints as getDangerousSourceBasePoints, getPointDetailById as getDangerousSourcePointDetailById} from './dangerous-source' import { getBasePoints as getEmergencyShelterBasePoints, getPointDetailById as getEmergencyShelterPointDetailById} from './emergency-shelter' import { getBasePoints as getFirefighterBasePoints, getPointDetailById as getFirefighterPointDetailById} from './firefighter' @@ -71,7 +71,7 @@ export const $api = { * 获取所有基础医院 * @returns 医院数据数组 */ - getBasePoins: (): Promise> => getHospitalsBasePoints(), + getBasePoints: (): Promise> => getHospitalsBasePoints(), /** * 根据id获取医院详情 diff --git a/src/api/hospitals.ts b/src/api/hospitals.ts index f003a12..e06eddf 100644 --- a/src/api/hospitals.ts +++ b/src/api/hospitals.ts @@ -6,7 +6,7 @@ import httpInstance from "@/utils/request/http" * 获取医院基础数据 * @returns 医院数据数组 */ -export const getBasePoins = (): Promise> => { +export const getBasePoints = (): Promise> => { return httpInstance.get('/hospitals/base-points') } diff --git a/src/component/rain-earthquake/detail-panels/HospitalComponent.vue b/src/component/rain-earthquake/detail-panels/HospitalComponent.vue index f0be71b..0fa1d8b 100644 --- a/src/component/rain-earthquake/detail-panels/HospitalComponent.vue +++ b/src/component/rain-earthquake/detail-panels/HospitalComponent.vue @@ -49,7 +49,7 @@ // 获取钩子函数 const { field, getDisasterIcon } = useHospitalPoint(); - $api.hospitals.getBasePoins().then((res) => { + $api.hospitals.getBasePoints().then((res) => { hospitalPoints.value = res.data; });