wip fix
This commit is contained in:
parent
67a768febf
commit
74de7f44ad
|
|
@ -28,8 +28,8 @@ export default page({
|
|||
})();
|
||||
return <Loading note="init" />;
|
||||
}
|
||||
|
||||
if (!edInitSync(p)) {
|
||||
|
||||
if (!edInitSync(p) && !p.sync) {
|
||||
return <Loading note="connecting-ws" />;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"} />;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue