第一次点击生成 后面点击生成的都是正常的 代码: const query = uni.createSelectorQuery().select('#code'); query.boundingClientRect(data => { this.$refs .uqrcode .make({ size:data.height, text: this.url }) .then(res => { }) }).exec();