From d50d32147b88040f63861f403427c6def04788b2 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 9 Nov 2022 11:16:59 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E9=9A=90=E7=A7=81?= =?UTF-8?q?=E6=94=BF=E7=AD=96=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/functions/web.js | 3 ++- resources/assets/js/pages/login.vue | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/assets/js/functions/web.js b/resources/assets/js/functions/web.js index d877fcc8a..c3331a410 100755 --- a/resources/assets/js/functions/web.js +++ b/resources/assets/js/functions/web.js @@ -16,10 +16,11 @@ */ apiUrl(str) { if (str == "privacy") { - let apiHome = $A.getDomain(window.systemInfo.apiUrl) + const apiHome = $A.getDomain(window.systemInfo.apiUrl) if (apiHome == "" || apiHome == "public") { return "https://www.dootask.com/privacy.html" } + str = "../privacy.html" } if (str.substring(0, 2) === "//" || str.substring(0, 7) === "http://" || diff --git a/resources/assets/js/pages/login.vue b/resources/assets/js/pages/login.vue index 687d6aab1..92f360f7a 100644 --- a/resources/assets/js/pages/login.vue +++ b/resources/assets/js/pages/login.vue @@ -168,7 +168,7 @@ export default { subscribe: null, - privacyShow: !!this.$isEEUiApp, + privacyShow: !!this.$isEEUiApp && $A.getStorageString("cachePrivacyShow") !== "no", } }, mounted() { @@ -374,6 +374,8 @@ export default { }, setServerUrl(value) { + $A.setStorage("cachePrivacyShow", value ? "no" : "yes") + // if (value != this.cacheServerUrl) { $A.setStorage("cacheServerUrl", value) $A.reloadUrl();