From f33e0a4d96c34fcb7c26342e880bafc4d68c4e07 Mon Sep 17 00:00:00 2001
From: Gary Gu <garygu@Garydebijibendiannao.local>
Date: Thu, 24 Jul 2025 09:14:37 +0800
Subject: [PATCH] feat: 新增智慧工地跳转URL

---
 src/Dashboard.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/Dashboard.vue b/src/Dashboard.vue
index db1aa12..37acea1 100644
--- a/src/Dashboard.vue
+++ b/src/Dashboard.vue
@@ -97,6 +97,7 @@
         iframeSrc: window.ProjectConfig.xieTongIframeSrc,
         selectedId: "",
         isFullScreen: false,
+        webUrl: "",
       };
     },
     computed: {
@@ -110,7 +111,8 @@
       this.resetEngineRelated();
     },
     methods: {
-      onSelectChange(val) {
+      onSelectChange(val, webUrl) {
+        this.webUrl = webUrl;
         this.selectedId = val;
       },
       fullscreenChange(val) {
@@ -126,7 +128,7 @@
             window.open(window.ProjectConfig.xieTongIframeSrc, "_blank");
             break;
           case "zhihui":
-            window.open("http://beijiaodaxiongan.zhihuibuild.com/#/autologin?next=", "_blank");
+            window.open(this.webUrl, "_blank");
             break;
         }
       },

--
Gitblit v1.9.3