Commit af34f7d9 by xiexiaoqin

fix: 首页点击刷新按钮时会重复叠加数据,笔记换行显示

parent df7713e4
......@@ -4,6 +4,7 @@
padding: 16rpx;
margin-top: 16rpx;
margin-bottom: 1rpx;
word-break: break-all;
}
.notes-edit {
......
......@@ -3,6 +3,7 @@
border-radius: 8rpx;
padding: 16rpx;
margin-top: 16rpx;
word-break: break-all;
}
.notes-edit {
......
......@@ -305,8 +305,12 @@ create.Page({
dd.closeSocket();
},
refresh() {
//重置数据
DateMap = getDateMap(this.minYear, this.maxYear);
this.isNeverShowSchedulePage = true;
this.isLoaded = false;
//定位到今天,防止上面的不生效
this.backToToday('first')
this.onLoad();
},
getPages(current, callBack) {
......
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