Handy_Cao 3 周之前
父節點
當前提交
e70910246e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/packages/digital/views/contract/goods/detail/index.vue

+ 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