diff --git a/src/api/api.ts b/src/api/api.ts index f343f40..11bc77d 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -1,7 +1,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 { getBasePoints as getHiddenDangerBasePoints, getPointDetailById as getHiddenDangerPointDetailById} from './hidden-danger-spots' +import { getBasePoints as getRiskBasePoints, getPointDetailById as getRiskPointDetailById} from './risk-spots' 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' @@ -45,7 +45,7 @@ export const $api = { * @param disasterType - 灾害类型 * @returns 隐患点数据数组 */ - getBasePoins: (disasterType: DisasterType): Promise> => getHiddenDangerBasePoints(disasterType), + getBasePoints: (disasterType: DisasterType): Promise> => getHiddenDangerBasePoints(disasterType), /** * 根据id获取隐患点详情 @@ -61,7 +61,7 @@ export const $api = { * 获取所有基础风险点 * @returns 风险点数据数组 */ - getBasePoins: (): Promise> => getRiskBasePoints(), + getBasePoints: (): Promise> => getRiskBasePoints(), /** * 根据id获取风险点详情 diff --git a/src/api/hidden-danger-spots.ts b/src/api/hidden-danger-spots.ts index f39be96..3619332 100644 --- a/src/api/hidden-danger-spots.ts +++ b/src/api/hidden-danger-spots.ts @@ -8,7 +8,7 @@ import httpInstance from "@/utils/request/http" * @param disasterType - 灾害类型 * @returns 隐患点数据数组 */ -export const getBasePoins = (disasterType: DisasterType): Promise> => { +export const getBasePoints = (disasterType: DisasterType): Promise> => { return httpInstance.get('/hidden-danger-spots/base-points', { params: { disasterType diff --git a/src/api/risk-spots.ts b/src/api/risk-spots.ts index 152e605..d451ee6 100644 --- a/src/api/risk-spots.ts +++ b/src/api/risk-spots.ts @@ -6,7 +6,7 @@ import httpInstance from "@/utils/request/http" * 获取风险点基础数据 * @returns 风险点数据数组 */ -export const getBasePoins = (): Promise> => { +export const getBasePoints = (): Promise> => { return httpInstance.get('/risk-spots/base-points') } diff --git a/src/component/rain-earthquake/basic/HiddenPointComponent.vue b/src/component/rain-earthquake/basic/HiddenPointComponent.vue index 504eb67..b656d84 100644 --- a/src/component/rain-earthquake/basic/HiddenPointComponent.vue +++ b/src/component/rain-earthquake/basic/HiddenPointComponent.vue @@ -55,7 +55,7 @@ // 获取钩子函数 const { field, getDisasterIcon } = useHiddenPoint(); - $api.hiddenDangerSpots.getBasePoins(props.disasterType).then((res) => { + $api.hiddenDangerSpots.getBasePoints(props.disasterType).then((res) => { baseHiddenPoints.value = res.data; }); diff --git a/src/component/rain-earthquake/basic/RiskPointComponent.vue b/src/component/rain-earthquake/basic/RiskPointComponent.vue index 88f192b..c38041e 100644 --- a/src/component/rain-earthquake/basic/RiskPointComponent.vue +++ b/src/component/rain-earthquake/basic/RiskPointComponent.vue @@ -48,7 +48,7 @@ // 获取钩子函数 const { informationBoxTitle, field, getDisasterIcon } = useRiskPoint(); - $api.riskSpots.getBasePoins().then((res) => { + $api.riskSpots.getBasePoints().then((res) => { riskPoints.value = res.data; });