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

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
@@ -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 };
}
};