mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(component): [table] row-key due to current-change trigger (#10060)
fix: table row-key due to current-change trigger
This commit is contained in:
@@ -57,7 +57,7 @@ function useStyle<T>(
|
||||
watch(
|
||||
() => [props.currentRowKey, store.states.rowKey],
|
||||
([currentRowKey, rowKey]) => {
|
||||
if (!unref(rowKey)) return
|
||||
if (!unref(rowKey) || !unref(currentRowKey)) return
|
||||
store.setCurrentRowKey(`${currentRowKey}`)
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user