mj websocket refactor is ready

This commit is contained in:
RockYang
2024-09-29 07:51:08 +08:00
parent 9edb3d0a82
commit 8093a3eeb2
7 changed files with 63 additions and 149 deletions

View File

@@ -357,7 +357,6 @@ onMounted(() => {
window.onresize = () => resizeElement();
store.addMessageHandler("chat", (data) => {
console.log(data)
// 丢去非本频道和本客户端的消息
if (data.channel !== 'chat' || data.clientId !== getClientId()) {
return
@@ -472,8 +471,6 @@ const initData = () => {
for (let item of items) {
if (item.kind === 'file') {
const file = item.getAsFile();
fileFound = true;
const formData = new FormData();
formData.append('file', file);
loading.value = true
@@ -490,10 +487,6 @@ const initData = () => {
break;
}
}
if (!fileFound) {
document.getElementById('status').innerText = 'No file found in paste data.';
}
});
}