mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-21 01:02:59 +08:00
chore(components): [tour] remove redundant check for 'open' variable (#18668)
refactor(components): [tour] remove redundant check for 'open' variable The check for 'open.value == true' was unnecessary since 'open' is already verified to be non-null earlier in the code.
This commit is contained in:
parent
9c168ecf36
commit
d7dfce37e7
@ -71,7 +71,7 @@ export const useTarget = (
|
||||
posInfo.value = null
|
||||
return
|
||||
}
|
||||
if (!isInViewPort(targetEl) && open.value) {
|
||||
if (!isInViewPort(targetEl)) {
|
||||
targetEl.scrollIntoView(scrollIntoViewOptions.value)
|
||||
}
|
||||
const { left, top, width, height } = targetEl.getBoundingClientRect()
|
||||
|
Loading…
Reference in New Issue
Block a user