lrf402788946 4 years ago
parent
commit
58441cb5ad
1 changed files with 4 additions and 3 deletions
  1. 4 3
      components/qrcode.vue

+ 4 - 3
components/qrcode.vue

@@ -31,9 +31,10 @@ export default {
       if (!this.exchange) return;
       //二维码地址应该是变量,不过这里需要处理
       let uri = `${this.config.weixin.baseUrl}${this.uri}`;
-      if (uri.startsWith('/')) {
-        uri = `${location.protocol}//${location.host}${uri}`;
-      }
+      console.log(uri);
+      // if (uri.startsWith('/')) {
+      //   uri = `${location.protocol}//${location.host}${uri}`;
+      // }
       this.dataUrl = await QRCode.toDataURL(uri);
 
       this.$stomp({