MengYX
5 years ago
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
1 changed files with
3 additions and
2 deletions
-
src/App.vue
|
@ -92,12 +92,13 @@ |
|
|
try { |
|
|
try { |
|
|
const resp = await fetch("https://stats.ixarea.com/collect/music/app-version", { |
|
|
const resp = await fetch("https://stats.ixarea.com/collect/music/app-version", { |
|
|
method: "POST", headers: {"Content-Type": "application/json"}, |
|
|
method: "POST", headers: {"Content-Type": "application/json"}, |
|
|
body: JSON.stringify({Version: this.version}) |
|
|
body: JSON.stringify({"Version": this.version}) |
|
|
}); |
|
|
}); |
|
|
updateInfo = await resp.json(); |
|
|
updateInfo = await resp.json(); |
|
|
} catch (e) { |
|
|
} catch (e) { |
|
|
} |
|
|
} |
|
|
if (!!updateInfo && !!updateInfo.Found) { |
|
|
if ((!!updateInfo && process.env.NODE_ENV === 'production') && (!!updateInfo.HttpsFound || |
|
|
|
|
|
(!!updateInfo.Found && window.location.protocol !== "https:"))) { |
|
|
this.$notify.warning({ |
|
|
this.$notify.warning({ |
|
|
title: '发现更新', |
|
|
title: '发现更新', |
|
|
message: '发现新版本 v' + updateInfo.Version + |
|
|
message: '发现新版本 v' + updateInfo.Version + |
|
|