liuyu 5 years ago
parent
commit
c4496fa804
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/news.js

+ 1 - 1
app/service/news.js

@@ -24,7 +24,7 @@ class NewsService extends CrudService {
         },
         },
         dataType: 'json',
         dataType: 'json',
       });
       });
-      if (user.data.data.name) {
+      if (user.data.name) {
         news.uname = user.data.data.name;
         news.uname = user.data.data.name;
       }
       }
     }
     }