Parcourir la source

fix: not displayed when allocable inventory is 0

Casper Dai il y a 3 ans
Parent
commit
847ecac088
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 }