diff --git a/src/pages/IntegratedCommand/pages/RealtimeWarning/index.tsx b/src/pages/IntegratedCommand/pages/RealtimeWarning/index.tsx
index 112abf4..c3fc6d5 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 8acd133..5983e7f 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 376223b..825731c 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 5275334..976a905 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/, ""),
}
--
GitLab