添加部分钩子函数,便于代码维护

This commit is contained in:
wzy-warehouse
2026-04-13 21:23:24 +08:00
parent 4d2d8787b1
commit b58e2d17d7
13 changed files with 267 additions and 200 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import { HiddenPointType } from '@/types/common/DisasterType';
import type { PaginationType } from '@/types/common/PaginationType';
// 灾害链影响点列表钩子函数
export function useRainDisasterChain() {
export const useRainDisasterChain = () => {
// 搜索条件
const conditions = ref({
tableData: '',
@@ -70,4 +70,4 @@ export function useRainDisasterChain() {
changeConditions,
changeCurrentPage,
};
}
};
+2 -2
View File
@@ -7,7 +7,7 @@ import {
} from '@/assets';
// 引入图例钩子函数
export function useRainLegend() {
export const useRainLegend = () => {
// 图例数据
const legendList = [
{ name: '滑坡隐患点', link: landslideIcon },
@@ -18,4 +18,4 @@ export function useRainLegend() {
];
return { legendList };
}
};