jiangping
2023-08-22 4ca4e5271d03989e41bb5c0d6914a1dec380e47b
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(()=>{