From a0e9b51614f572aebf4706d7cff04618ebd08f2f Mon Sep 17 00:00:00 2001 From: wangjuncheng <1> Date: 星期五, 06 六月 2025 09:43:39 +0800 Subject: [PATCH] 1 --- src/components/tools/Dam.vue | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/components/tools/Dam.vue b/src/components/tools/Dam.vue index bc9e82e..f115c6a 100644 --- a/src/components/tools/Dam.vue +++ b/src/components/tools/Dam.vue @@ -1,6 +1,8 @@ <template> <div class="custom-panel"> <div class="panel-content"> + <el-button @click="handleSwitchChange" title="寮�鍚ā鍨嬪簱"> + </el-button> <el-switch v-model="isDamEnabled" active-text="寮�鎸栧紑鍚�" @@ -17,22 +19,14 @@ import { ElSwitch } from 'element-plus'; const isDamEnabled = ref(false); function handleDamOn() { - console.log('寮�鎸栧姛鑳藉凡寮�鍚�'); earthCtrl.factory.createModelLibrary() -} - -// 寮�鍏冲叧闂椂鎵ц鐨勫嚱鏁� -function handleDamOff() { - console.log('寮�鎸栧姛鑳藉凡鍏抽棴'); } // 鐩戝惉 switch 鍙樺寲 function handleSwitchChange(value) { if (value) { handleDamOn(); - } else { - handleDamOff(); } } </script> -- Gitblit v1.9.3