fix: 修复风控规则表格不显示数据的问题
- 修改 generateVueTable 调用方式,使用 getter 函数传递 data 和 loading - 确保表格数据响应式更新
This commit is contained in:
@@ -33,7 +33,11 @@ const columns = computed(() => [
|
|||||||
}),
|
}),
|
||||||
])
|
])
|
||||||
|
|
||||||
const table = generateVueTable<RiskRule>({ ...props, columns: columns.value })
|
const table = generateVueTable<RiskRule>({
|
||||||
|
get data() { return props.data },
|
||||||
|
get loading() { return props.loading },
|
||||||
|
columns: columns.value,
|
||||||
|
})
|
||||||
|
|
||||||
const columnLabels: Record<string, string> = {
|
const columnLabels: Record<string, string> = {
|
||||||
select: '选择',
|
select: '选择',
|
||||||
|
|||||||
Reference in New Issue
Block a user