更新环境变量;新增favicon

This commit is contained in:
JIANG
2025-11-10 14:51:14 +08:00
parent 929fafe9af
commit 20418ee9fe
8 changed files with 7 additions and 7 deletions

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

View File

@@ -529,7 +529,7 @@ const StyleEditorPanel: React.FC<StyleEditorPanelProps> = ({
const resetStyle = useCallback(() => {
if (!selectedRenderLayer) return;
// 重置 WebGL 图层样式
const defaultFlatStyle: FlatStyleLike = config.mapDefaultStyle;
const defaultFlatStyle: FlatStyleLike = config.MAP_DEFAULT_STYLE;
selectedRenderLayer.setStyle(defaultFlatStyle);
// 删除对应图层的样式状态,从而移除图例显示

View File

@@ -28,7 +28,7 @@ import { FiSkipBack, FiSkipForward } from "react-icons/fi";
import { useData } from "../MapComponent";
import { config, NETWORK_NAME } from "@/config/config";
import { useMap } from "../MapComponent";
const backendUrl = config.backendUrl;
const backendUrl = config.BACKEND_URL;
interface TimelineProps {
schemeDate?: Date;

View File

@@ -18,7 +18,7 @@ import StyleLegend from "./StyleLegend"; // 引入图例组件
import { handleMapClickSelectFeatures as mapClickSelectFeatures } from "@/utils/mapQueryService";
import { config } from "@/config/config";
const backendUrl = config.backendUrl;
const backendUrl = config.BACKEND_URL;
// 图层样式状态接口
interface StyleConfig {

View File

@@ -26,7 +26,7 @@ const Zoom: React.FC = () => {
const handleFitScreen = () => {
if (!map) return;
const view = map.getView();
view.fit(config.mapExtent, { duration: 500 });
view.fit(config.MAP_EXTENT, { duration: 500 });
};
return (

View File

@@ -282,7 +282,7 @@ const AnalysisParameters: React.FC = () => {
};
try {
await axios.post(`${config.backendUrl}/burst_analysis/`, body, {
await axios.post(`${config.BACKEND_URL}/burst_analysis/`, body, {
headers: {
"Accept-Encoding": "gzip",
"Content-Type": "application/json",

View File

@@ -133,7 +133,7 @@ const SchemeQuery: React.FC<SchemeQueryProps> = ({
setLoading(true);
try {
const response = await axios.get(
`${config.backendUrl}/getallschemes/?network=${network}`
`${config.BACKEND_URL}/getallschemes/?network=${network}`
);
let filteredResults = response.data;

View File

@@ -94,7 +94,7 @@ const OptimizationParameters: React.FC = () => {
try {
// 发送优化请求
const response = await axios.post(
`${config.backendUrl}/sensorplacementscheme/create`,
`${config.BACKEND_URL}/sensorplacementscheme/create`,
null,
{
params: {