更新环境变量;新增favicon
This commit is contained in:
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 66 KiB |
@@ -529,7 +529,7 @@ const StyleEditorPanel: React.FC<StyleEditorPanelProps> = ({
|
|||||||
const resetStyle = useCallback(() => {
|
const resetStyle = useCallback(() => {
|
||||||
if (!selectedRenderLayer) return;
|
if (!selectedRenderLayer) return;
|
||||||
// 重置 WebGL 图层样式
|
// 重置 WebGL 图层样式
|
||||||
const defaultFlatStyle: FlatStyleLike = config.mapDefaultStyle;
|
const defaultFlatStyle: FlatStyleLike = config.MAP_DEFAULT_STYLE;
|
||||||
selectedRenderLayer.setStyle(defaultFlatStyle);
|
selectedRenderLayer.setStyle(defaultFlatStyle);
|
||||||
|
|
||||||
// 删除对应图层的样式状态,从而移除图例显示
|
// 删除对应图层的样式状态,从而移除图例显示
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ import { FiSkipBack, FiSkipForward } from "react-icons/fi";
|
|||||||
import { useData } from "../MapComponent";
|
import { useData } from "../MapComponent";
|
||||||
import { config, NETWORK_NAME } from "@/config/config";
|
import { config, NETWORK_NAME } from "@/config/config";
|
||||||
import { useMap } from "../MapComponent";
|
import { useMap } from "../MapComponent";
|
||||||
const backendUrl = config.backendUrl;
|
const backendUrl = config.BACKEND_URL;
|
||||||
|
|
||||||
interface TimelineProps {
|
interface TimelineProps {
|
||||||
schemeDate?: Date;
|
schemeDate?: Date;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import StyleLegend from "./StyleLegend"; // 引入图例组件
|
|||||||
import { handleMapClickSelectFeatures as mapClickSelectFeatures } from "@/utils/mapQueryService";
|
import { handleMapClickSelectFeatures as mapClickSelectFeatures } from "@/utils/mapQueryService";
|
||||||
|
|
||||||
import { config } from "@/config/config";
|
import { config } from "@/config/config";
|
||||||
const backendUrl = config.backendUrl;
|
const backendUrl = config.BACKEND_URL;
|
||||||
|
|
||||||
// 图层样式状态接口
|
// 图层样式状态接口
|
||||||
interface StyleConfig {
|
interface StyleConfig {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const Zoom: React.FC = () => {
|
|||||||
const handleFitScreen = () => {
|
const handleFitScreen = () => {
|
||||||
if (!map) return;
|
if (!map) return;
|
||||||
const view = map.getView();
|
const view = map.getView();
|
||||||
view.fit(config.mapExtent, { duration: 500 });
|
view.fit(config.MAP_EXTENT, { duration: 500 });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ const AnalysisParameters: React.FC = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await axios.post(`${config.backendUrl}/burst_analysis/`, body, {
|
await axios.post(`${config.BACKEND_URL}/burst_analysis/`, body, {
|
||||||
headers: {
|
headers: {
|
||||||
"Accept-Encoding": "gzip",
|
"Accept-Encoding": "gzip",
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ const SchemeQuery: React.FC<SchemeQueryProps> = ({
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const response = await axios.get(
|
const response = await axios.get(
|
||||||
`${config.backendUrl}/getallschemes/?network=${network}`
|
`${config.BACKEND_URL}/getallschemes/?network=${network}`
|
||||||
);
|
);
|
||||||
let filteredResults = response.data;
|
let filteredResults = response.data;
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ const OptimizationParameters: React.FC = () => {
|
|||||||
try {
|
try {
|
||||||
// 发送优化请求
|
// 发送优化请求
|
||||||
const response = await axios.post(
|
const response = await axios.post(
|
||||||
`${config.backendUrl}/sensorplacementscheme/create`,
|
`${config.BACKEND_URL}/sensorplacementscheme/create`,
|
||||||
null,
|
null,
|
||||||
{
|
{
|
||||||
params: {
|
params: {
|
||||||
|
|||||||
Reference in New Issue
Block a user