From 77c6de2d14b0e38389e40ebd9526d5be27486d06 Mon Sep 17 00:00:00 2001 From: Gary Gu <garygu@Garydebijibendiannao.local> Date: Thu, 17 Apr 2025 15:48:55 +0800 Subject: [PATCH] fix: 配置文件修改 --- src/Dashboard.vue | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/Dashboard.vue b/src/Dashboard.vue index fe85677..c920516 100644 --- a/src/Dashboard.vue +++ b/src/Dashboard.vue @@ -19,7 +19,7 @@ }" > <!--头部--> - <app-header class="absolute z-[100] top-0 left-0 right-0" :selected-id="currentProjectId" /> + <app-header class="absolute z-[100] top-0 left-0 right-0" :selected-id="currentProjectId" @onHomeClick="switchView" /> @@ -45,6 +45,9 @@ </div> </div> +<!-- <div class="absolute inset-0 top-[80px] flex" v-if="clickTab === 'xietong'"> + <iframe :src="iframeSrc" class="xieTongIframe" frameborder='0'></iframe> + </div>--> <!--multiverse渲染容器 <div id="renderDom" class="absolute z-[40] top-0 bottom-0 left-0 right-0 w-full h-full"></div>--> @@ -87,7 +90,9 @@ return { backgroundImage: new URL('@/assets/images/backgrounds/screen.png', import.meta.url).href, currentProjectId: '1c179617-a7d9-4243-b813-84fa55a17ce7', - isReady: false + isReady: false, + clickTab:'home', + iframeSrc: window.ProjectConfig.xieTongIframeSrc }; }, computed: { @@ -102,6 +107,17 @@ this.resetEngineRelated(); }, methods: { + /** + * 切换视图 + * @param val + */ + switchView(val){ + switch (val){ + case 'xietong': + window.open(window.ProjectConfig.xieTongIframeSrc, '_blank'); + break; + } + }, //重置引擎相关的东西 resetEngineRelated() { window.scene = window.underlay = null; @@ -163,3 +179,9 @@ }, }; </script> +<style lang="scss" scoped> + .xieTongIframe{ + width: 100%; + height: 100%; + } +</style> -- Gitblit v1.9.3