Commit 016c3cda authored by 季圣华's avatar 季圣华
Browse files

给消息通知进行截取排序

parent 0c131601
......@@ -103,6 +103,10 @@
getAction(this.url.getMsgByStatus, { status: '1'}).then((res) => {
if (res && res.code === 200) {
this.announcement1 = res.data;
if(this.announcement1.length>5) {
this.announcement1 = this.announcement1.reverse()
this.announcement1 = this.announcement1.slice(0,5)
}
this.msg1Count = res.data.length;
this.msg1Title = "通知(" + res.data.length + ")";
}
......
Supports Markdown
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