panhui 2 лет назад
Родитель
Сommit
216123bcc8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/views/ProductDetailPage.vue

+ 2 - 2
src/views/ProductDetailPage.vue

@@ -179,7 +179,7 @@ onMounted(() => {
 })
 
 const riseRate = computed(() => {
-    let _info = useSystemStore().saleBatches.find(item => item.saleBatch.id == info.value.batchId)
+    let _info = useSystemStore().saleBatches.find(item => item.id == info.value.batchId)
     let _back = null
     if (_info) {
         _back = _info.extensions.find(item => {
@@ -191,7 +191,7 @@ const riseRate = computed(() => {
 })
 
 const riseRatePercent = computed(() => {
-    let _info = useSystemStore().saleBatches.find(item => item.saleBatch.id == info.value.batchId)
+    let _info = useSystemStore().saleBatches.find(item => item.id == info.value.batchId)
     let _back = null
     if (_info) {
         _back = _info.extensions.find(item => {