From e37485d41550b3e7e22423875d31401a8470e0b7 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期二, 22 八月 2023 11:14:43 +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