| | |
| | | </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' |
| | | |
| | |
| | | |
| | | const enterprise = useCounterStore() |
| | | |
| | | console.log(enterprise.count++) |
| | | const companyId = computed(() => { |
| | | return enterprise.companyId |
| | | }) |
| | | const departId = computed(() => { |
| | | return enterprise.departId |
| | | }) |
| | | |
| | | start() |
| | | start1() |
| | |
| | | |
| | | onMounted(()=> { |
| | | // getSensorData() |
| | | getTop(8, 36) |
| | | .then(res => { |
| | | console.log(res) |
| | | }) |
| | | // getTop(8, 36) |
| | | // .then(res => { |
| | | // console.log(res) |
| | | // }) |
| | | }) |
| | | |
| | | onBeforeUnmount(()=>{ |