fix
This commit is contained in:
parent
da2cb75001
commit
a03110bab4
|
|
@ -12,8 +12,13 @@ export default page({
|
||||||
location.pathname.startsWith("/ed/")
|
location.pathname.startsWith("/ed/")
|
||||||
) {
|
) {
|
||||||
navigate("/ed/_/_");
|
navigate("/ed/_/_");
|
||||||
} else {
|
} else if (location.pathname.startsWith("/editor")) {
|
||||||
navigate("/editor/_/_");
|
const arr = location.pathname.split("/");
|
||||||
|
if (arr.length <= 2) {
|
||||||
|
navigate("/editor/_/_");
|
||||||
|
} else if (arr.length === 3) {
|
||||||
|
navigate(location.pathname + "/");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
navigate("/login");
|
navigate("/login");
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ const start = async () => {
|
||||||
let react = {
|
let react = {
|
||||||
root: null as null | ReactRoot,
|
root: null as null | ReactRoot,
|
||||||
};
|
};
|
||||||
if (true || !["localhost", "127.0.0.1"].includes(location.hostname)) {
|
if (!["localhost", "127.0.0.1"].includes(location.hostname)) {
|
||||||
const sw = await registerServiceWorker();
|
const sw = await registerServiceWorker();
|
||||||
|
|
||||||
const cacheCurrentPage = () => {
|
const cacheCurrentPage = () => {
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue