Handy_Cao 3 hafta önce
ebeveyn
işleme
e70910246e

+ 1 - 1
src/packages/digital/views/contract/goods/detail/index.vue

@@ -294,7 +294,7 @@ const calculations = computed(() => {
     const estimatedAmount = price * amount
 
     const accountStore = useAccountStore()
-    const { avaiableBalance = 0 } = computed(() => accountStore.filterAccountsByCurrencyId(currencyid, goodscurrencyid)).value[0]
+    const { avaiableBalance = 0 } = computed(() => accountStore.filterAccountsByCurrencyId(currencyid, goodscurrencyid)).value[0] ?? {}
 
     const openAmount = price*OrderQty*agreeunit