Merge remote-tracking branch 'origin/main' into zxy

This commit is contained in:
2026-04-27 11:07:36 +08:00
2 changed files with 10 additions and 12 deletions
+10 -1
View File
@@ -1,4 +1,4 @@
import { ref } from 'vue';
import { ref, watch } from 'vue';
import type { XianHiddenDangerSpots } from '@/types/base/XianHiddenDangerSpots';
import type { PaginationType } from '@/types/common/PaginationType';
import { PointType } from '@/types/common/DisasterType';
@@ -305,6 +305,15 @@ export const useRainDisasterChain = () => {
];
};
// 监听条件变化
watch(
conditions,
() => {
console.log('条件改变');
},
{ deep: true }
);
return {
conditions,
selectOptions,
@@ -71,13 +71,11 @@
import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain';
import { useStatusStore } from '@/stores/useStatusStore';
import { DisasterType } from '@/types/common/DisasterType.ts';
import { watch } from 'vue';
import { useRoute } from 'vue-router';
const route = useRoute();
const {
conditions,
selectOptions,
tableDatas,
tableColumns,
@@ -89,15 +87,6 @@
changeConditions,
changeCurrentPage,
} = useRainDisasterChain();
// 监听条件变化
watch(
conditions,
() => {
console.log('条件改变');
},
{ deep: true }
);
</script>
<style scoped></style>