Commit 84e04489 by fengzhaoyu

Merge branch 'release/dev/2.0.0' of…

Merge branch 'release/dev/2.0.0' of https://gitlab.mingwork.com/fengzhaoyu/schedule into release/dev/2.0.0
parents 983a0be9 af34f7d9
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
padding: 16rpx; padding: 16rpx;
margin-top: 16rpx; margin-top: 16rpx;
margin-bottom: 1rpx; margin-bottom: 1rpx;
word-break: break-all;
} }
.notes>view>text { .notes>view>text {
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
border-radius: 8rpx; border-radius: 8rpx;
padding: 16rpx; padding: 16rpx;
margin-top: 16rpx; margin-top: 16rpx;
word-break: break-all;
} }
.notes-edit { .notes-edit {
......
...@@ -183,8 +183,12 @@ create.Page({ ...@@ -183,8 +183,12 @@ create.Page({
}, },
connect_start() { connect_start() {
const userId = dd.getStorageSync({ key: 'mwUserId' }).data;
if (!userId) {
return
}
dd.connectSocket({ dd.connectSocket({
url: `${websocketUrl}/meet-websocket/websocket/${dd.getStorageSync({ key: 'mwUserId' }).data}/${uuid}`, url: `${websocketUrl}/meet-websocket/websocket/${userId}/${uuid}`,
success: (res) => { success: (res) => {
...@@ -301,8 +305,12 @@ create.Page({ ...@@ -301,8 +305,12 @@ create.Page({
dd.closeSocket(); dd.closeSocket();
}, },
refresh() { refresh() {
//重置数据
DateMap = getDateMap(this.minYear, this.maxYear);
this.isNeverShowSchedulePage = true; this.isNeverShowSchedulePage = true;
this.isLoaded = false; this.isLoaded = false;
//定位到今天,防止上面的不生效
this.backToToday('first')
this.onLoad(); this.onLoad();
}, },
getPages(current, callBack) { getPages(current, callBack) {
......
...@@ -328,4 +328,6 @@ export function isJSON(str) { ...@@ -328,4 +328,6 @@ export function isJSON(str) {
return false; 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