Skip to content

Commit

Permalink
fix: 修复钉钉小程序中uni-swipe-action在非本页面操作数据后报错
Browse files Browse the repository at this point in the history
  • Loading branch information
cucuzi committed Jun 5, 2024
1 parent f696c22 commit 77b8ea5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ otherMixins = {
views
.selectAll('.' + this.elClass)
.boundingClientRect(data => {
if (data.length === 0) return
if (!data || data.length === 0) return
let show = 'none'
if (this.autoClose) {
show = 'none'
Expand Down

0 comments on commit 77b8ea5

Please sign in to comment.