|
@@ -217,7 +217,9 @@ export default {
|
|
|
wxPay(id) {
|
|
|
increOrderSettleGeneratePayCode({ id }).then(res => {
|
|
|
this.codeUrl = res.data.codeUrl
|
|
|
- this.$refs.payQRCode.innerHTML = '';
|
|
|
+ if(this.$refs?.payQRCode?.innerHTML){
|
|
|
+ this.$refs.payQRCode.innerHTML = '';
|
|
|
+ }
|
|
|
this.$nextTick(() => {
|
|
|
new QRCode(this.$refs.payQRCode, {
|
|
|
text: res.data.codeUrl,
|