From 8f902a43cd8fb6e07605d2db7e35eaaa2f540879 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期一, 06 三月 2023 14:36:02 +0800
Subject: [PATCH] #

---
 static/js/data/Asrs.js |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/static/js/data/Asrs.js b/static/js/data/Asrs.js
index ed54974..217fde7 100644
--- a/static/js/data/Asrs.js
+++ b/static/js/data/Asrs.js
@@ -1,19 +1,21 @@
 
 initStore();
 
-setInterval(function () {
+let interval = setInterval(function () {
     queryCrnCurrent();
     queryStaCurrent();
 },1000);
 
+setTimeout(() => {
+    clearInterval(interval)
+}, 1000)
+
 var Store3DData;
 function initStore() {
     $.ajax({
-        // url: 'http://47.97.1.152:58080/jkwcs/three/init/store/v1',
-        url: 'http://localhost:9090/jkwcs/three/init/store/v1',
+        url: top.baseUrl + '/three/init/store/v1',
         type: "POST",
         data: {},
-        // async: false,
         success: function (res) {
             Store3DData = res;
         }
@@ -23,8 +25,7 @@
 var CrnDatas = null;
 function queryCrnCurrent() {
     $.ajax({
-        // url: 'http://47.97.1.152:58080/jkwcs/three/query/crn/cache/v1',
-        url: 'http://localhost:9090/jkwcs/three/query/crn/cache/v1',
+        url: top.baseUrl + '/three/query/crn/cache/v1',
         type: "GET",
         data: {},
         success: function (res) {
@@ -36,8 +37,7 @@
 var StaDatas = null;
 function queryStaCurrent() {
     $.ajax({
-        // url: 'http://47.97.1.152:58080/jkwcs/three/query/crn/cache/v1',
-        url: 'http://localhost:9090/jkwcs/three/query/sta/cache/v1',
+        url: top.baseUrl + '/three/query/sta/cache/v1',
         type: "GET",
         data: {},
         success: function (res) {

--
Gitblit v1.9.1