From 4ce9492c80733d8deafaf8b401c4bb1a698ec399 Mon Sep 17 00:00:00 2001 From: Admin <978517621@qq.com> Date: 星期四, 01 十二月 2022 14:06:42 +0800 Subject: [PATCH] Default Changelist --- src/views/intellectInspect/intelligentLine/index.vue | 15 ++++++++------- 1 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/intellectInspect/intelligentLine/index.vue b/src/views/intellectInspect/intelligentLine/index.vue index f1d8fe8..c20d361 100644 --- a/src/views/intellectInspect/intelligentLine/index.vue +++ b/src/views/intellectInspect/intelligentLine/index.vue @@ -92,7 +92,7 @@ <script lang="ts"> import screenfull from 'screenfull'; import { lineApi } from '/@/api/intelligentLine'; -import {toRefs, reactive, ref, onMounted, onUnmounted, computed, nextTick} from 'vue'; +import {toRefs, reactive, ref, onMounted, onUnmounted, computed, nextTick, onActivated} from 'vue'; import {useRoute} from 'vue-router'; import { storeToRefs } from 'pinia'; import { initBackEndControlRoutes } from '/@/router/backEnd'; @@ -137,8 +137,10 @@ state.id = curId.toString() getLine(state.id) getUrl(state.id) - onScreenfullClick(); }); + onActivated(()=>{ + onScreenfullClick(); + }) const dataList = computed(() => { return userInfos.value.dataList; @@ -191,7 +193,7 @@ const getLine = async (id:string) => { let res = await lineApi().getLine({ id: id }); if (res.data.code === '200') { - userInfos.value.dataList = res.data.data; + userInfos.value.dataList = res.data.data } else { ElMessage({ type: 'warning', @@ -208,7 +210,6 @@ return false; } screenfull.toggle(element); - console.log(111111111111111) }; // 返回 @@ -1000,11 +1001,11 @@ width: 100%; height: 100%; display: flex; - justify-content: center; + justify-content: left; align-items: flex-start; + overflow-y: hidden; + overflow-x: hidden; overflow: auto; - &::-webkit-scrollbar { width: 0; height: 0; color: transparent; } - &::scrollbar { width: 0; height: 0; color: transparent; } } .line-map { -- Gitblit v1.9.2