规整代码,同时保留功能
This commit is contained in:
@@ -38,7 +38,6 @@
|
||||
import LegendComponent from '@/component/rain-earthquake/LegendComponent.vue';
|
||||
import RightButtonComponent from '@/component/rain-earthquake/RightButtonComponent.vue';
|
||||
import { useEarthquakeDisasterChain } from '@/hooks/earthquake/useEarthquakeDisasterChain';
|
||||
import { useEarthquakeLegend } from '@/hooks/earthquake/useEarthquakeLegend';
|
||||
import { DisasterType } from '@/types/common/DisasterType.ts';
|
||||
import { watch } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
@@ -51,6 +50,7 @@
|
||||
tableDatas,
|
||||
tableColumns,
|
||||
paginationConfig,
|
||||
legendList,
|
||||
leftButtonInfo,
|
||||
rightButtonInfo,
|
||||
controlPanel,
|
||||
@@ -58,8 +58,6 @@
|
||||
changeCurrentPage,
|
||||
} = useEarthquakeDisasterChain();
|
||||
|
||||
const { legendList } = useEarthquakeLegend();
|
||||
|
||||
// 监听条件变化
|
||||
watch(
|
||||
conditions,
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
import LegendComponent from '@/component/rain-earthquake/LegendComponent.vue';
|
||||
import RightButtonComponent from '@/component/rain-earthquake/RightButtonComponent.vue';
|
||||
import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain';
|
||||
import { useRainLegend } from '@/hooks/rainstorm/useRainLegend';
|
||||
import { DisasterType } from '@/types/common/DisasterType.ts';
|
||||
import { watch } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
@@ -51,6 +50,7 @@
|
||||
tableDatas,
|
||||
tableColumns,
|
||||
paginationConfig,
|
||||
legendList,
|
||||
leftButtonInfo,
|
||||
rightButtonInfo,
|
||||
controlPanel,
|
||||
@@ -58,8 +58,6 @@
|
||||
changeCurrentPage,
|
||||
} = useRainDisasterChain();
|
||||
|
||||
const { legendList } = useRainLegend();
|
||||
|
||||
// 监听条件变化
|
||||
watch(
|
||||
conditions,
|
||||
|
||||
Reference in New Issue
Block a user