Browse Source

fix: not displayed when allocable inventory is 0

Casper Dai 3 năm trước cách đây
mục cha
commit
847ecac088
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/realm/ai-stock/Stock.vue

+ 1 - 1
src/views/realm/ai-stock/Stock.vue

@@ -80,7 +80,7 @@ export default {
           { prop: 'remaining', label: '剩余次数' },
           { prop: 'allocatedAmount', label: '已分配' },
           { label: '可分配', render ({ initialAmount, allocatedAmount }) {
-            return initialAmount - allocatedAmount
+            return (initialAmount - allocatedAmount).toString()
           } },
           { type: 'invoke', render: [
             { label: '删除', on: this.onDel }