screen_standard/.env.development | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
screen_standard/src/router/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
screen_standard/src/views/process.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
screen_standard/.env.development
@@ -3,4 +3,4 @@ VITE_BASE_CONTEXT='' VITE_BASE_PATH='/api' VITE_BASE_PATH='http://192.168.0.35:10021/' VITE_BASE_URL='http://192.168.0.35:10021/' screen_standard/src/router/index.js
@@ -2,7 +2,7 @@ import HomeView from '../views/HomeView.vue' import indexView from '../views/index.vue' import processView from '../views/process.vue' console.log(import.meta.env.VITE_BASE_CONTEXT); const router = createRouter({ history: createWebHistory(import.meta.env.VITE_BASE_CONTEXT), screen_standard/src/views/process.vue
@@ -120,6 +120,7 @@ import * as echarts from 'echarts' const route = useRoute() const enterprise = useCounterStore() let mainTimer = ref(null) let planTimer = ref(null) let reportTimer = ref(null) let planContainer = ref(null) @@ -147,15 +148,20 @@ onBeforeUnmount(() => { clearTimeout(planTimer.value) clearTimeout(reportTimer.value) clearTimeout(mainTimer.value) }) onMounted(() => { initData() mainTimer.value = setInterval(() => { initData() }, 6000) }) onUnmounted(() => { clearTimeout(planTimer.value) clearTimeout(reportTimer.value) clearTimeout(mainTimer.value) }) function initData() {