feat: markmap function is ready

This commit is contained in:
RockYang
2024-04-15 17:23:59 +08:00
parent 8a9f386d8f
commit 7ad41927aa
12 changed files with 418 additions and 142 deletions

View File

@@ -576,24 +576,26 @@ const connect = () => {
});
_socket.addEventListener('close', () => {
ElMessageBox.confirm(
'检测到您已经在其他客户端创建了新的连接,当前连接将被关闭!',
'提示',
{
dangerouslyUseHTMLString: true,
confirmButtonText: '重新连接',
cancelButtonText: '关闭',
type: 'warning',
}
).then(() => {
connect()
}).catch(() => {
ElMessage({
type: 'info',
message: '连接已关闭',
if (socket.value !== null) {
ElMessageBox.confirm(
'检测到您已经在其他客户端创建了新的连接,当前连接将被关闭!',
'提示',
{
dangerouslyUseHTMLString: true,
confirmButtonText: '重新连接',
cancelButtonText: '关闭',
type: 'warning',
}
).then(() => {
connect()
}).catch(() => {
ElMessage({
type: 'info',
message: '连接已关闭',
})
})
})
});
}
})
}
const clipboard = ref(null)