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();