|
@@ -4,8 +4,10 @@
|
|
</el-dialog>
|
|
</el-dialog>
|
|
</template>
|
|
</template>
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
-import { ref } from 'vue';
|
|
|
|
-import DetailVue from '../detail.vue';
|
|
|
|
|
|
+import { ref, defineAsyncComponent } from 'vue';
|
|
|
|
+// import DetailVue from '/@/views/iot/device/instance/detail.vue';
|
|
|
|
+// 异步加载组件,防止循环引用导致打包之后报错
|
|
|
|
+const DetailVue = defineAsyncComponent(() => import('/@/views/iot/device/instance/detail.vue'))
|
|
|
|
|
|
const showDialog = ref(false)
|
|
const showDialog = ref(false)
|
|
const deviceKey = ref('')
|
|
const deviceKey = ref('')
|
|
@@ -19,5 +21,3 @@ defineExpose({ openDialog })
|
|
|
|
|
|
</script>
|
|
</script>
|
|
<style scoped></style>
|
|
<style scoped></style>
|
|
-
|
|
|
|
-
|
|
|