添加部分钩子函数,便于代码维护
This commit is contained in:
@@ -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,
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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 };
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user