From 84d7b5e9b0a31c1e18dc52b3d69b1cadf96938e7 Mon Sep 17 00:00:00 2001
From: wwl <xchao828@163.com>
Date: 星期五, 06 十二月 2024 17:47:57 +0800
Subject: [PATCH] 报错提示

---
 src/views/mall/checklog/index.vue |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/views/mall/checklog/index.vue b/src/views/mall/checklog/index.vue
index afb5fb7..04bc396 100644
--- a/src/views/mall/checklog/index.vue
+++ b/src/views/mall/checklog/index.vue
@@ -359,8 +359,14 @@
     /** 鏌ヨ鏍搁攢璁板綍鍒楄〃 */
     getList() {
       this.loading = true;
-      this.queryParams.startTime = this.createTimeList[0]
+      if(this.createTimeList){
+        this.queryParams.startTime = this.createTimeList[0]
       this.queryParams.endTime = this.createTimeList[1]
+      }else if(this.createTimeList == null){
+        this.queryParams.startTime = null
+      this.queryParams.endTime = null
+      }
+     
       listChecklog(this.queryParams).then((response) => {
         response.rows.forEach((item, index) => {
             item.newID =

--
Gitblit v1.8.0