Parcourir la source

2024.10.18 - 修复添加爆品未清空状态的bug

GuYun-D il y a 5 mois
Parent
commit
f0de84f244
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8 0
      src/views/active/hot/HotGoodsAdd.vue

+ 8 - 0
src/views/active/hot/HotGoodsAdd.vue

@@ -93,6 +93,14 @@ export default {
     }
   },
 
+  watch: {
+    hotGoodsAddVisible(visible) {
+      if (!visible) {
+        this.reset()
+      }
+    }
+  },
+
   methods: {
     open(row) {
       if (row && typeof row === 'object') {