Commit 9d409a7f by xiexiaoqin

fix: 笔记列表换行

parent 9dc72943
......@@ -183,8 +183,12 @@ create.Page({
},
connect_start() {
const userId = dd.getStorageSync({ key: 'mwUserId' }).data;
if (!userId) {
return
}
dd.connectSocket({
url: `${websocketUrl}/meet-websocket/websocket/${dd.getStorageSync({ key: 'mwUserId' }).data}/${uuid}`,
url: `${websocketUrl}/meet-websocket/websocket/${userId}/${uuid}`,
success: (res) => {
......
......@@ -328,4 +328,6 @@ export function isJSON(str) {
return false;
}
export function removeHtml(str) { return str.replace(/<\/?.+?>/g, "") }
export function removeHtml(str) {
return str.replace(/<\/?.l>/g, "").replace(/<\/.+?>/g, "\n").replace(/<.+?>/g, "")
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment