lct
Your Name
2022-08-17 3c5ca2f8ce690f2c8808548e5ce5f69da296de10
src/views/intellectInspect/intelligentLine/index.vue
@@ -85,7 +85,7 @@
<script lang="ts">
import screenfull from 'screenfull';
import { lineApi } from '/@/api/intelligentLine';
import { toRefs, reactive, ref, onMounted, onUnmounted, computed } from 'vue';
import {toRefs, reactive, ref, onMounted, onUnmounted, computed, nextTick} from 'vue';
import {useRoute} from 'vue-router';
import { storeToRefs } from 'pinia';
import { initBackEndControlRoutes } from '/@/router/backEnd';
@@ -217,9 +217,11 @@
        // 页面关闭处理
        onUnmounted(() => {
            // 销毁监听
            nextTick(()=>{
            state.socket.onclose = () => {
                console.log('socket已经关闭');
            };
            })
        });
        return {
            dataList,