guhongwei 2 years ago
parent
commit
5a473aaf55
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/service/notice.js

+ 1 - 0
app/service/notice.js

@@ -24,6 +24,7 @@ class NoticeService extends CrudService {
     const { type } = body;
     const { type } = body;
     const user = await this.usermodel.find();
     const user = await this.usermodel.find();
     let userList = user.filter(i => i.type !== '0');
     let userList = user.filter(i => i.type !== '0');
+    if (userList.length > 0) userList = JSON.parse(JSON.stringify(userList));
     if (type !== '3') {
     if (type !== '3') {
       if (type === '0') {
       if (type === '0') {
         for (const val of userList) {
         for (const val of userList) {