diff --git a/pageProduct/index/components/edit-price.vue b/pageProduct/index/components/edit-price.vue index 5d5dc74..79f676a 100644 --- a/pageProduct/index/components/edit-price.vue +++ b/pageProduct/index/components/edit-price.vue @@ -89,7 +89,8 @@ reactive, ref, watch, - nextTick + nextTick, + onMounted } from 'vue'; import { returnSkuSnap, @@ -138,7 +139,10 @@ } } }) - let data = ref(props.goods) + let data = ref({ + lowPrice: 0, + skuList: [] + }) const rules = { 'lowPrice': [{ type: 'Number', @@ -221,6 +225,10 @@ // skuSnap: JSON.stringify(skuSnap) // }) // } + + onMounted(()=>{ + refForm.value.setRules(rules) + }) \ No newline at end of file