mounted if thissource === WeiXIN this$refsweixinclick; else 改成如果thissource === Alipay也是自动触犯支付宝对应的点击事件
mounted() { if (this.source === 'WeiXIN') { this.$refs.weixin.click(); } else if (this.source === 'Alipay') { this.$refs.alipay.click(); } }
AI 优化版
原文地址:https://www.cveoy.top/t/topic/jgMy 著作权归作者所有。请勿转载和采集!