Skip to content

Commit

Permalink
Merge pull request #46 from Zheng-Changfu/dev
Browse files Browse the repository at this point in the history
fix(ProDataTable): columns 死循环问题
  • Loading branch information
Zheng-Changfu authored Oct 24, 2024
2 parents 74991d3 + 2f68e2f commit 045b41e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ export function useColumns(props: ComputedRef<ProDataTableProps>, options: UseCo

watchEffect(() => {
const values = props.value.columns ?? []
columns.value = resolveColumns(values)
cacheColumns = columns.value
cacheColumns = columns.value = resolveColumns(values)
})

return {
Expand Down

0 comments on commit 045b41e

Please sign in to comment.