点击预览按钮进行二维码预览时报错:
tt.onTouchEnd((res) => {
const { changedTouches } = res;
if (isHitInRect(changedTouches, x, y, width, height)) {
drawDefault();
this.props?.onPress(); // 这里报错
}
})
点击预览按钮进行二维码预览时报错:
tt.onTouchEnd((res) => {
const { changedTouches } = res;
if (isHitInRect(changedTouches, x, y, width, height)) {
drawDefault();
this.props?.onPress(); // 这里报错
}
})