|
|
@@ -401,7 +401,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
- import { onBeforeUnmount, onUnmounted, onMounted, ref, reactive, nextTick, inject, unref, defineAsyncComponent, provide } from 'vue';
|
|
|
+ import { onBeforeUnmount, onUnmounted, onMounted, ref, reactive, nextTick, inject, unref, defineAsyncComponent, provide, shallowRef } from 'vue';
|
|
|
import MonitorTable from '../comment/MonitorTable.vue';
|
|
|
import HistoryTable from '../comment/HistoryTable.vue';
|
|
|
import AlarmHistoryTable from '../comment/AlarmHistoryTable.vue';
|
|
|
@@ -436,7 +436,7 @@
|
|
|
|
|
|
const modelRef = ref();
|
|
|
/** 模型对应的组件,根据实际情况分为二维三维 */
|
|
|
- const modelComponent = getModelComponent(globalConfig.is2DModel);
|
|
|
+ const modelComponent = shallowRef(getModelComponent(globalConfig.is2DModel));
|
|
|
|
|
|
const { currentRoute } = useRouter();
|
|
|
const gateId = ref(''); //风门ID
|