feat:对接虚拟机控制台
Build and Deploy Vue3 / build (push) Successful in 1m8s
Build and Deploy Vue3 / deploy (push) Successful in 1m47s

This commit is contained in:
2025-09-29 14:40:25 +08:00
parent 4fc9a43fd2
commit 7382811bab
+6 -1
View File
@@ -1623,10 +1623,15 @@ const handleRestart = async () => {
// 打开控制台
const handleConsole = async () => {
const res = await getInstanceConsole(route.query.instance_id)
console.log("打开控制台结果:",res)
if(res.data.code === 200){
window.open(res.data.data)
let url = res.data.data.base_url + '/?token=' + res.data.data.data
window.open(url);
}
// window.open(`/console?instance_id=${route.query.instance_id}`, '_blank');
else{
ElMessage.error('打开控制台失败');
}
};