瀏覽代碼

fix: not displayed when allocable inventory is 0

Casper Dai 3 年之前
父節點
當前提交
847ecac088
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 }