From 29c27bbfd927fd02a2fbc285bba2ef0c6b0a981a Mon Sep 17 00:00:00 2001 From: MengYX Date: Tue, 7 Apr 2020 18:53:38 +0800 Subject: [PATCH 1/2] Limit Update Tips --- src/App.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index b76490c..eff18f4 100644 --- a/src/App.vue +++ b/src/App.vue @@ -92,12 +92,13 @@ try { const resp = await fetch("https://stats.ixarea.com/collect/music/app-version", { method: "POST", headers: {"Content-Type": "application/json"}, - body: JSON.stringify({Version: this.version}) + body: JSON.stringify({"Version": this.version}) }); updateInfo = await resp.json(); } catch (e) { } - if (!!updateInfo && !!updateInfo.Found) { + if ((!!updateInfo && process.env.NODE_ENV === 'production') && (!!updateInfo.HttpsFound || + (!!updateInfo.Found && window.location.protocol !== "https:"))) { this.$notify.warning({ title: '发现更新', message: '发现新版本 v' + updateInfo.Version + From 77d9ca4ba8520bd93f2a6f9a073974b8a360aab8 Mon Sep 17 00:00:00 2001 From: MengYX Date: Wed, 8 Apr 2020 22:47:38 +0800 Subject: [PATCH 2/2] Change Browser Tips Condition --- public/index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/public/index.html b/public/index.html index 161bcf0..9e3b78c 100644 --- a/public/index.html +++ b/public/index.html @@ -22,7 +22,7 @@