Browse Source

修改显示问题

Zhang Li, BBF-411-2(Neusoft) 2 years ago
parent
commit
c91f6380ff
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/modules/knowledge/album/albumList.vue

+ 2 - 2
src/views/modules/knowledge/album/albumList.vue

@@ -299,12 +299,12 @@ export default {
     init() {
       api.yelp().then(res => {
         if(res.code == 200) {
-          this.yelpNum = res.data || 0
+          this.yelpNum = res.data < 99 ? res.data : 99
         }
       })
       api.approve().then(res => {
         if(res.code == 200) {
-          this.approveNum = res.data || 0
+          this.approveNum = res.data < 99 ? res.data : 99
         }
       })
       api.categories().then(res => {