perf: 优化隐私政策弹窗

This commit is contained in:
kuaifan 2022-11-09 11:16:59 +08:00
parent ec9544db0a
commit d50d32147b
2 changed files with 5 additions and 2 deletions

View File

@ -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://" ||

View File

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