lilei 3 anos atrás
pai
commit
85700bf52d
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/views/Home.vue

+ 1 - 1
src/views/Home.vue

@@ -54,7 +54,7 @@ export default {
   methods: {
     hasNewProduct () {
       queryNewProductPage({ pageNo: 1, pageSize: 20 }).then(res => {
-        if (res.status == 200) {
+        if (res.status == 200 && res.data.count > 0) {
           this.openNewProduct = true
         }
       })