mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-06 09:27:05 +00:00
perf: 优化隐私政策弹窗
This commit is contained in:
parent
ec9544db0a
commit
d50d32147b
3
resources/assets/js/functions/web.js
vendored
3
resources/assets/js/functions/web.js
vendored
@ -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://" ||
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user