|
@@ -224,6 +224,15 @@ export default new Vuex.Store({
|
|
|
console.log("与服务器时间差异:" + payload);
|
|
|
},
|
|
|
updateSiteMessages(state, payload) {
|
|
|
+ if (Array.isArray(payload)) {
|
|
|
+ payload = payload.map((notice) => {
|
|
|
+ if (notice.hasRecalled) {
|
|
|
+ notice.title = "发送者已撤回消息:" + notice.title;
|
|
|
+ notice.content = "该消息已经被发送者撤回。";
|
|
|
+ }
|
|
|
+ return notice;
|
|
|
+ });
|
|
|
+ }
|
|
|
state = Object.assign(state, { siteMessages: payload });
|
|
|
},
|
|
|
updateSiteMessagesTimeStamp(state, payload) {
|