|
|
@@ -55,6 +55,10 @@ export default {
|
|
|
margin: 0
|
|
|
};
|
|
|
|
|
|
+ QRCode.toDataURL(document.location.href, opts, (err, url) => {
|
|
|
+ this.img = url;
|
|
|
+ });
|
|
|
+
|
|
|
this.$http
|
|
|
.get({
|
|
|
url: "/appVersion/getAppVersion",
|
|
|
@@ -76,9 +80,6 @@ export default {
|
|
|
this.size = res.data.androidSize;
|
|
|
this.version = res.data.androidVersion;
|
|
|
}
|
|
|
- QRCode.toDataURL(appurl, opts, (err, url) => {
|
|
|
- this.img = url;
|
|
|
- });
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
@@ -95,7 +96,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
if (!/http/i.test(appUrl)) {
|
|
|
- this.$toast('未知下载地址');
|
|
|
+ this.$toast("未知下载地址");
|
|
|
} else {
|
|
|
window.location.href = appUrl;
|
|
|
}
|