From 08a0dd22e9669c356aacf0951126a753620dc85a Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 19 九月 2024 16:48:50 +0800
Subject: [PATCH] fix:限购数量空值处理

---
 pages/goods/list/_action/_id.vue |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/pages/goods/list/_action/_id.vue b/pages/goods/list/_action/_id.vue
index 73b6d70..636d3cc 100644
--- a/pages/goods/list/_action/_id.vue
+++ b/pages/goods/list/_action/_id.vue
@@ -165,6 +165,10 @@
         { params: { id: this.$route.params.id } }
       )
       if (code === 0) {
+        const limited = data.limited;
+        if (limited === null) {
+          data.limited = undefined;
+        }
         this.$refs.form.updateForm(data)
       }
       this.loading = false

--
Gitblit v1.9.3