From 7217e02e098b94e421b5a85ec13e0cd2ed35fbeb Mon Sep 17 00:00:00 2001
From: wangjuncheng <1>
Date: 星期五, 06 六月 2025 17:28:23 +0800
Subject: [PATCH] 1

---
 src/components/tools/Dam.vue |   15 +++++----------
 1 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/src/components/tools/Dam.vue b/src/components/tools/Dam.vue
index f115c6a..a72685c 100644
--- a/src/components/tools/Dam.vue
+++ b/src/components/tools/Dam.vue
@@ -1,14 +1,9 @@
 <template>
   <div class="custom-panel">
     <div class="panel-content">
-      <el-button @click="handleSwitchChange" title="寮�鍚ā鍨嬪簱">
+      <el-button @click="openModelDialog">
+        寮�鍚ā鍨嬪簱
       </el-button>
-      <el-switch
-        v-model="isDamEnabled"
-        active-text="寮�鎸栧紑鍚�"
-        inactive-text="寮�鎸栧叧闂�"
-        @change="handleSwitchChange"
-      />
     </div>
   </div>
 </template>
@@ -17,18 +12,18 @@
 <script setup>
 import { ref } from 'vue';
 import { ElSwitch } from 'element-plus';
-const isDamEnabled = ref(false);
 function handleDamOn() {
+  window.Viewer = earthCtrl.viewer;
   earthCtrl.factory.createModelLibrary()
-
 }
 
 // 鐩戝惉 switch 鍙樺寲
-function handleSwitchChange(value) {
+function openModelDialog(value) {
   if (value) {
     handleDamOn();
   }
 }
+
 </script>
 
 <style scoped>

--
Gitblit v1.9.3