Prechádzať zdrojové kódy

Merge remote-tracking branch 'origin/master'

zhangcl 4 dní pred
rodič
commit
2a5137a521

+ 1 - 1
src/router/modules/remaining.ts

@@ -536,7 +536,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
         component: () => import('@/views/pms/device/monitor/TdDeviceInfo.vue'),
         name: 'TdDeviceDetail',
         meta: {
-          noCache: false,
+          noCache: true,
           hidden: true,
           canTo: true,
           icon: 'ep:info',

+ 2 - 1
src/views/pms/device/monitor/TdDeviceInfo.vue

@@ -79,7 +79,7 @@ async function loadDimensions() {
 }
 
 const selectedDate = ref<string[]>([
-  ...rangeShortcuts[3].value().map((v) => dayjs(v).format('YYYY-MM-DD HH:mm:ss'))
+  ...rangeShortcuts[2].value().map((v) => dayjs(v).format('YYYY-MM-DD HH:mm:ss'))
 ])
 
 interface ChartData {
@@ -292,6 +292,7 @@ function startAutoFetch() {
 }
 
 function stopAutoFetch() {
+  cancelAllRequests()
   if (timer.value) clearInterval(timer.value)
   timer.value = null
 }