Procházet zdrojové kódy

fix: indnet创建报价.sku选择对话框.修复点击分类无响应问题.

peter před 2 týdny
rodič
revize
f9037a3cc2

+ 16 - 0
src/pages/indent-manage/indent/components/skuSelect.vue

@@ -212,6 +212,22 @@ watch(
     }
   },
 )
+watch(
+  currentCategory,
+  () => {
+    console.log('watch run bbb')
+    if (!currentCategory.value) return
+    console.log('watch run')
+    keywords.value = ''
+    skuList.value = []
+    pageForm.value = {
+      page: 1,
+      limit: 20,
+    }
+    total.value = 0
+    getSku()
+  },
+)
 const close = (done = {} as any) => {
   $emit('update:visible', false)
   if (typeof done === 'function') done()