Sfoglia il codice sorgente

前端: 数量判断

baichengfei 4 anni fa
parent
commit
b8e9015696
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      src/dashoo.cn/frontend_web/src/pages/index.vue

+ 2 - 1
src/dashoo.cn/frontend_web/src/pages/index.vue

@@ -590,7 +590,8 @@
             if (res.data === 'true') {
               let contractNum = 0
               contractApi.getNeedEvaList(this.$axios).then(res => {
-                if (res.status === 200) {
+                console.log('未评价数量', res.data.items)
+                if (res.status === 200 && res.data.items !== null) {
                   contractNum = res.data.currentItemCount
                   this.$confirm('您有 ' + contractNum + ' 份合同评价待处理,请及时评价!', '提示', {
                     confirmButtonText: '确定',