mirror of
https://github.com/kuaifan/dootask.git
synced 2026-02-21 07:50:30 +00:00
fix: 移动客户端访问本站链接出现需要登录的情况
This commit is contained in:
parent
66961197f6
commit
020be75f7b
@ -204,7 +204,19 @@ export default {
|
|||||||
return window.systemInfo.title || "DooTask";
|
return window.systemInfo.title || "DooTask";
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
if (this.$router.mode === "hash") {
|
||||||
|
if ($A.stringLength(window.location.pathname) > 2) {
|
||||||
|
window.location.href = `${window.location.origin}/#${window.location.pathname}${window.location.search}`
|
||||||
|
return
|
||||||
|
}
|
||||||
|
} else if (this.$router.mode === "history") {
|
||||||
|
if ($A.strExists(window.location.href, "/#/")) {
|
||||||
|
window.location.href = window.location.href.replace("/#/", "/")
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
this.getNeedStartHome();
|
this.getNeedStartHome();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user