This commit is contained in:
Rizky 2024-02-05 11:00:52 +07:00
parent 67a768febf
commit 74de7f44ad
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ export default page({
return <Loading note="init" />;
}
if (!edInitSync(p)) {
if (!edInitSync(p) && !p.sync) {
return <Loading note="connecting-ws" />;
}

View File

@ -81,7 +81,7 @@ export const edInitSync = (p: PG) => {
}
}
if (!params.page_id && !p.page.cur.id) {
if (!params.page_id) {
if (location.pathname.startsWith("/ed")) {
if (!params.site_id) {
db.page

View File

@ -65,7 +65,7 @@ export const ViPreview = (arg: { pathname: string }) => {
viRoute(p);
if (p.status !== "ready") {
if (p.status !== "ready" && p.status !== "reload") {
return <Loading note={p.status + "-page"} />;
}