feat:更新代码

This commit is contained in:
leilei
2025-11-24 10:17:34 +08:00
7 changed files with 7 additions and 6 deletions

1
.gitignore vendored
View File

@@ -9,6 +9,7 @@ lerna-debug.log*
node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

View File

@@ -131,7 +131,7 @@ defineExpose({
// onMounted(async () => {
// await mqttClient.connect(`room${Math.random().toString(16).substr(2, 8)}`);
// const res = await userStore.getInfo()
// const topic = `xSynergy/ROOM/+/rooms/${res.uid}`;
// const topic = `xsynergy/room/+/rooms/${res.uid}`;
// mqttClient.subscribe(topic, async (shapeData) => {
// // console.log(shapeData.toString(),'shapeData发送邀请')
// processingSocket(shapeData.toString())

View File

@@ -144,7 +144,7 @@ function handleClickOutside() {
onMounted(async () => {
await mqttClient.connect(`room${Math.random().toString(16).substr(2, 8)}`);
const res = await userStore.getInfo()
const topic = `xSynergy/ROOM/+/rooms/${res.uid}`;
const topic = `xsynergy/room/+/rooms/${res.uid}`;
mqttClient.subscribe(topic, async (shapeData) => {
if(inviteJoinRef.value){
inviteJoinRef.value.processingSocket(shapeData.toString())

View File

@@ -41,7 +41,7 @@ export const WhiteboardSync = {
}
// 订阅当前房间
const topic = `xSynergy/ROOM/${roomUid}/whiteboard/#`;
const topic = `xsynergy/room/${roomUid}/whiteboard/#`;
mqttClient.subscribe(topic, async (shapeData) => {
const shapeDataNew = JSON.parse(shapeData.toString())
// const shapeDataNew = decode(message);

View File

@@ -42,7 +42,7 @@ export const WhiteboardSync = {
}
// 订阅当前房间
const topic = `xSynergy/ROOM/${roomUid}/whiteboard/#`;
const topic = `xsynergy/room/${roomUid}/whiteboard/#`;
mqttClient.subscribe(topic, async (shapeData) => {
const shapeDataNew = JSON.parse(shapeData.toString())
// const shapeDataNew = decode(message);

View File

@@ -500,7 +500,7 @@ const { detail, weekName, tabValue, isShow, load, loadText, isLinkKnow, socketIn
// onMounted(async () => {
// await mqttClient.connect(`room${Math.random().toString(16).substr(2, 8)}`);
// const res = await userStore.getInfo()
// const topic = `xSynergy/ROOM/+/rooms/${res.uid}`;
// const topic = `xsynergy/room/+/rooms/${res.uid}`;
// mqttClient.subscribe(topic, async (shapeData) => {
// // console.log(shapeData.toString(),'shapeData发送邀请')
// processingSocket(shapeData.toString())

View File

@@ -16,7 +16,7 @@
<el-form-item>
<el-button :loading="loading" size="large" class="button-login" type="primary"
@click.prevent="handleLogin">
<span v-if="!loading"> ++</span>
<span v-if="!loading"> </span>
<span v-else>登录中...</span>
</el-button>
</el-form-item>