瀏覽代碼

bug 修复

lilei 3 年之前
父節點
當前提交
85700bf52d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/Home.vue

+ 1 - 1
src/views/Home.vue

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