mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-27 15:50:43 +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) {
|
apiUrl(str) {
|
||||||
if (str == "privacy") {
|
if (str == "privacy") {
|
||||||
let apiHome = $A.getDomain(window.systemInfo.apiUrl)
|
const apiHome = $A.getDomain(window.systemInfo.apiUrl)
|
||||||
if (apiHome == "" || apiHome == "public") {
|
if (apiHome == "" || apiHome == "public") {
|
||||||
return "https://www.dootask.com/privacy.html"
|
return "https://www.dootask.com/privacy.html"
|
||||||
}
|
}
|
||||||
|
str = "../privacy.html"
|
||||||
}
|
}
|
||||||
if (str.substring(0, 2) === "//" ||
|
if (str.substring(0, 2) === "//" ||
|
||||||
str.substring(0, 7) === "http://" ||
|
str.substring(0, 7) === "http://" ||
|
||||||
|
|||||||
@ -168,7 +168,7 @@ export default {
|
|||||||
|
|
||||||
subscribe: null,
|
subscribe: null,
|
||||||
|
|
||||||
privacyShow: !!this.$isEEUiApp,
|
privacyShow: !!this.$isEEUiApp && $A.getStorageString("cachePrivacyShow") !== "no",
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
@ -374,6 +374,8 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
setServerUrl(value) {
|
setServerUrl(value) {
|
||||||
|
$A.setStorage("cachePrivacyShow", value ? "no" : "yes")
|
||||||
|
//
|
||||||
if (value != this.cacheServerUrl) {
|
if (value != this.cacheServerUrl) {
|
||||||
$A.setStorage("cacheServerUrl", value)
|
$A.setStorage("cacheServerUrl", value)
|
||||||
$A.reloadUrl();
|
$A.reloadUrl();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user