feat: 添加win断开按钮

This commit is contained in:
chaos-zhu
2025-11-28 21:49:02 +08:00
parent 382f3a98f1
commit 4245b89cbd
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -62,6 +62,7 @@
{{ isConnecting ? '连接中' : '重连' }}
</el-button>
<el-button type="info" size="small" @click="moveToBackground"> 挂起 </el-button>
<el-button type="danger" size="small" @click="() => $emit('disconnect')"> 断开 </el-button>
<el-button
v-show="isMobile()"
type="success"
@@ -148,7 +149,7 @@ const props = defineProps({
}
})
const emit = defineEmits(['close:dialog', 'status:change',])
const emit = defineEmits(['close:dialog', 'status:change', 'disconnect',])
const rdpContainer = ref(null)
let client = ref(null)
+1
View File
@@ -34,6 +34,7 @@
:host="item"
@close:dialog="() => item.show = false"
@status:change="(status) => handleStatusChange(item.id, status)"
@disconnect="() => handleRemoveRdpTab(item)"
/>
</div>
</div>