fix: 修复在线实例页面表格不显示数据的问题
- 修改 generateVueTable 调用方式,使用 getter 函数传递 data 和 loading - 确保表格数据响应式更新
This commit is contained in:
@@ -28,7 +28,11 @@ const columns = computed<ColumnDef<Session>[]>(() => getColumns({
|
|||||||
onForceOffline: props.onForceOffline,
|
onForceOffline: props.onForceOffline,
|
||||||
}))
|
}))
|
||||||
|
|
||||||
const table = generateVueTable<Session>({ ...props, columns: columns.value })
|
const table = generateVueTable<Session>({
|
||||||
|
get data() { return props.data },
|
||||||
|
get loading() { return props.loading },
|
||||||
|
columns: columns.value,
|
||||||
|
})
|
||||||
|
|
||||||
const columnLabels: Record<string, string> = {
|
const columnLabels: Record<string, string> = {
|
||||||
instance_id: '实例标识',
|
instance_id: '实例标识',
|
||||||
|
|||||||
Reference in New Issue
Block a user