|
@@ -130,9 +130,11 @@ export default {
|
|
|
this.$httpWithoutBar
|
|
|
.get("/api/ecs_exam_work/notice/getUserNoticeList?hasRead=false")
|
|
|
.then((response) => {
|
|
|
- if (response.data.hasRecalled === true) {
|
|
|
- response.data.title = "发送者已撤回消息:" + response.data.title;
|
|
|
- response.data.content = "该消息已被发送者撤回。";
|
|
|
+ for (let notice of response.data) {
|
|
|
+ if (notice.hasRecalled === true) {
|
|
|
+ notice.title = "发送者已撤回消息:" + notice.title;
|
|
|
+ notice.content = "该消息已被发送者撤回。";
|
|
|
+ }
|
|
|
}
|
|
|
this.siteMessages = response.data;
|
|
|
setTimeout(() => {
|
|
@@ -147,9 +149,11 @@ export default {
|
|
|
this.$httpWithoutBar
|
|
|
.get("/api/ecs_exam_work/notice/getUserNoticeList?hasRead=false")
|
|
|
.then((response) => {
|
|
|
- if (response.data.hasRecalled === true) {
|
|
|
- response.data.title = "发送者已撤回消息:" + response.data.title;
|
|
|
- response.data.content = "该消息已被发送者撤回。";
|
|
|
+ for (let notice of response.data) {
|
|
|
+ if (notice.hasRecalled === true) {
|
|
|
+ notice.title = "发送者已撤回消息:" + notice.title;
|
|
|
+ notice.content = "该消息已被发送者撤回。";
|
|
|
+ }
|
|
|
}
|
|
|
this.siteMessages = response.data;
|
|
|
});
|