From 76cde2bc853cc4d491749e46dbef83064271d09a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 20 Feb 2023 11:08:41 +0800
Subject: [PATCH] 配置地址更新,定时器清除,事件绑定

---
 src/api/police/index.js |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/api/police/index.js b/src/api/police/index.js
index 8214e1f..abe56c6 100644
--- a/src/api/police/index.js
+++ b/src/api/police/index.js
@@ -2,13 +2,23 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2022-11-15 15:10:41
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2023-02-09 10:46:18
+ * @LastEditTime: 2023-02-20 10:18:05
  * @FilePath: \srs-police-affairs\src\api\police\index.js
  * @Description: 
  * 
  * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. 
  */
 import request from "@/router/axios.js"
+
+let equipmentNum = ''
+
+if (process.env.NODE_ENV == 'development') {
+    // 开发
+    equipmentNum = window.BASE_URL_CONFIG.VUE_APP_OUTER_NET_EQUIPMENT
+} else {
+    // 部署
+    equipmentNum = window.BASE_URL_CONFIG.VUE_APP_INTRANET_EQUIPMENT
+}
 
 /**
  * 获取设备历史轨迹
@@ -17,10 +27,7 @@
  */
 export const getHistoricalTrack = (params, requestBaseUrl = 'outside') => {
     return request({
-        // 内网
-        url: `/position/history/36110000002009999000`,
-        // 外网
-        // url: `/position/history/34020000002000000003`,
+        url: `/position/history/${equipmentNum}`,
         method: 'get',
         requestBaseUrl,
         params: params

--
Gitblit v1.9.3