Skip to content

Commit

Permalink
fix-下拉菜单传入正确direction,出现错误警告
Browse files Browse the repository at this point in the history
fix-下拉菜单传入正确direction,出现错误警告
  • Loading branch information
HiNaruta authored Aug 7, 2024
1 parent 3f99e1b commit 72d6b17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ linkChildren({ props, fold, offset })
watch(
() => props.direction,
(newValue) => {
if (['up', 'down'].includes(newValue)) {
if (!['up', 'down'].includes(newValue)) {
// eslint-disable-next-line quotes
console.error("[wot design] warning(wd-drop-menu): direction must be 'up' or 'down'")
}
Expand Down

0 comments on commit 72d6b17

Please sign in to comment.