소스 검색

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: {
     hasNewProduct () {
       queryNewProductPage({ pageNo: 1, pageSize: 20 }).then(res => {
-        if (res.status == 200) {
+        if (res.status == 200 && res.data.count > 0) {
           this.openNewProduct = true
         }
       })