diff --git a/src/pages/IntegratedCommand/pages/RealtimeWarning/index.tsx b/src/pages/IntegratedCommand/pages/RealtimeWarning/index.tsx
index 112abf4906826c6ed98ef3d2332690128d24702f..c3fc6d5f19cec2a3bf92c20ababe389509bbba46 100644
--- a/src/pages/IntegratedCommand/pages/RealtimeWarning/index.tsx
+++ b/src/pages/IntegratedCommand/pages/RealtimeWarning/index.tsx
@@ -7,15 +7,15 @@ export default function () {
const listData = [
{
name: "违规驾驶报警",
- total: 102,
- value: 15,
+ total: 0,
+ value: 0,
onClick: () => {
setIllegalDrivingShow(true)
}
},
- { name: "人员SOS报警", total: 102, value: 15 },
- { name: "车载超速报警", total: 102, value: 15 },
- { name: "车辆超载报警", total: 102, value: 2 },
+ { name: "人员SOS报警", total: 0, value: 0 },
+ { name: "车载超速报警", total: 0, value: 0 },
+ { name: "车辆超载报警", total: 0, value: 0 },
]
return
diff --git a/src/router/index.tsx b/src/router/index.tsx
index 8acd1339e0a6a5d282ff296b70e975559614a291..5983e7f69a5b736b12c7f4405694fab21429f24c 100644
--- a/src/router/index.tsx
+++ b/src/router/index.tsx
@@ -27,8 +27,6 @@ const router = createBrowserRouter([
},
],
},
-], {
- // basename: "/sanitation",
-})
+])
export default router;
diff --git a/src/utils/utils.ts b/src/utils/utils.ts
index 376223be02c1896f37a866491d5b4c633b7b9721..825731cf4427f160a28041c69482d37a62976f88 100644
--- a/src/utils/utils.ts
+++ b/src/utils/utils.ts
@@ -2,7 +2,7 @@
// 处理请求访问网关
const IS_PROD = process.env.NODE_ENV === 'production';
export const handleGateway = (url: string, gateway: string = '') => {
- // return '/sanitation/api' + gateway + url
+ // return '/api' + gateway + url
if (IS_PROD) {
return '/api' + gateway + url
diff --git a/vite.config.ts b/vite.config.ts
index 527533498f2691633cf6e60104ea47dc0033d257..976a905591c0636de28d05d4c01d26848abff46b 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -25,7 +25,7 @@ export default defineConfig({
proxy: {
"/api": {
// target: "http://172.23.0.140:15999", // 唐
- target: "http://171.217.92.33:58089", // 测试服务
+ target: "http://171.217.92.33:58089/element", // 测试服务
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
}