Pārlūkot izejas kodu

前端: 数量判断

baichengfei 4 gadi atpakaļ
vecāks
revīzija
b8e9015696
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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: '确定',