From 5f303821bd4052317db4b3e71342fb300ce5c3c9 Mon Sep 17 00:00:00 2001 From: Mr.Shi <1878285526@qq.com> Date: 星期二, 22 八月 2023 10:56:01 +0800 Subject: [PATCH] 大屏 --- screen_standard/src/views/index.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/screen_standard/src/views/index.vue b/screen_standard/src/views/index.vue index 7c4172d..122010e 100644 --- a/screen_standard/src/views/index.vue +++ b/screen_standard/src/views/index.vue @@ -185,7 +185,7 @@ </template> <script setup> - import { reactive, ref, onMounted, onBeforeUnmount, onUnmounted, nextTick } from 'vue' + import { reactive, ref, onMounted, onBeforeUnmount, onUnmounted, nextTick, computed } from 'vue' import { getTop } from '@/utils/api.js' import { useCounterStore } from '@/stores/counter.js' @@ -218,7 +218,12 @@ const enterprise = useCounterStore() - console.log(enterprise.count++) + const companyId = computed(() => { + return enterprise.companyId + }) + const departId = computed(() => { + return enterprise.departId + }) start() start1() @@ -244,10 +249,10 @@ onMounted(()=> { // getSensorData() - getTop(8, 36) - .then(res => { - console.log(res) - }) + // getTop(8, 36) + // .then(res => { + // console.log(res) + // }) }) onBeforeUnmount(()=>{ -- Gitblit v1.9.3