Browse Source

暂时去掉自动刷新

DESKTOP-NE65RNK\Citrus_limon 9 months ago
parent
commit
18749af1af
3 changed files with 634 additions and 176 deletions
  1. 1 1
      .env.development
  2. 630 172
      package-lock.json
  3. 3 3
      src/views/depth/index.vue

+ 1 - 1
.env.development

@@ -1 +1 @@
-VITE_API_BASE_URL = "http://192.168.31.150:82/priceCollect"
+VITE_API_BASE_URL = "http://kline.skyfffire.com:82/priceCollect"

File diff suppressed because it is too large
+ 630 - 172
package-lock.json


+ 3 - 3
src/views/depth/index.vue

@@ -15,7 +15,7 @@
             </lay-select>
           </div>
         </div>
-        <div class="operator_wp">
+        <div class="operator_wp" v-show="false">
           <lay-space>
             <div class="item_wp">
               <div class="label">自动刷新</div>
@@ -48,7 +48,7 @@ let selectedExchangeList = ref<Array<string>>([]);
 
 let symbolList = ref<Array<string>>([]);
 let selectedSymbol = ref();
-let isUpdate = ref(true);
+let isUpdate = ref(false);
 
 interface SymbolInfo {
   exchange: String;
@@ -280,7 +280,7 @@ const initChart = (data: any) => {
   if (times.value.length <= 0 || !isUpdate.value) return;
   timer.value = setInterval(() => {
     getIncrementalDepth();
-  }, 1000);
+  }, 5000);
 };
 onUnmounted(() => {
   window.removeEventListener("resize", myChart.value.resize());

Some files were not shown because too many files changed in this diff