expenseRowKey.js 285 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 /** 分账类目列表 v-for 稳定 key,避免仅用 index 在重排时错位 */ export function expenseSideRowKey(row, index, prefix) { const id = row && (row.expenseCategoryId ?? row.id) if (id != null && id !== "") return `${prefix}-${id}` return `${prefix}-idx-${index}` }