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 { XianHiddenDangerSpots } from '@/types/base/XianHiddenDangerSpots';
import type { PaginationType } from '@/types/common/PaginationType'; import type { PaginationType } from '@/types/common/PaginationType';
import { PointType } from '@/types/common/DisasterType'; import { PointType } from '@/types/common/DisasterType';
@@ -305,6 +305,15 @@ export const useRainDisasterChain = () => {
]; ];
}; };
// 监听条件变化
watch(
conditions,
() => {
console.log('条件改变');
},
{ deep: true }
);
return { return {
conditions, conditions,
selectOptions, selectOptions,
@@ -71,13 +71,11 @@
import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain'; import { useRainDisasterChain } from '@/hooks/rainstorm/useRainDisasterChain';
import { useStatusStore } from '@/stores/useStatusStore'; import { useStatusStore } from '@/stores/useStatusStore';
import { DisasterType } from '@/types/common/DisasterType.ts'; import { DisasterType } from '@/types/common/DisasterType.ts';
import { watch } from 'vue';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
const route = useRoute(); const route = useRoute();
const { const {
conditions,
selectOptions, selectOptions,
tableDatas, tableDatas,
tableColumns, tableColumns,
@@ -89,15 +87,6 @@
changeConditions, changeConditions,
changeCurrentPage, changeCurrentPage,
} = useRainDisasterChain(); } = useRainDisasterChain();
// 监听条件变化
watch(
conditions,
() => {
console.log('条件改变');
},
{ deep: true }
);
</script> </script>
<style scoped></style> <style scoped></style>