添加降雨服务器配置

This commit is contained in:
wzy-warehouse
2026-05-05 17:09:32 +08:00
parent 4982152f0c
commit 96c2cf1e21
8 changed files with 120 additions and 15 deletions
+20 -1
View File
@@ -2,8 +2,27 @@ import { useStatusStore } from '@/stores/useStatusStore.ts';
import { CesiumUtilsSingleton } from '@/utils/cesium/CesiumUtils.ts';
import config from '@/config/config.json';
import { useButtonSelectedIdStore } from '@/stores/useButtonSelectedIdStore';
import { $api } from '@/api/api';
export const useRightHandle = () => {
/**
* 暴雨模拟
* @param status - 状态
*/
const rainstormSimulation = (status: unknown) => {
if (status as boolean) {
// 获取降雨栅格
$api.meteorology
.getRainfallGrid({
startTime: '2025-08-20T00:00:00',
endTime: '2025-08-20T00:00:00',
})
.then((res) => {
console.log(res);
});
}
};
/**
* 重置场景
*/
@@ -22,5 +41,5 @@ export const useRightHandle = () => {
);
};
return { resetScene, resetView };
return { rainstormSimulation, resetScene, resetView };
};