x-essential-lib 0.10.14 → 0.10.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -666,7 +666,10 @@ async function onBeforeEach(to, from, lastAppPath) {
|
|
|
666
666
|
const orgId = to.query.orgId;
|
|
667
667
|
if (to.path.startsWith("/passport/")) onBeforeChange(to.path, from.path, lastAppPath);
|
|
668
668
|
else if (to.path.startsWith("/main")) try {
|
|
669
|
-
if (!orgId)
|
|
669
|
+
if (!orgId) return {
|
|
670
|
+
path: `/main/${Date.now()}`,
|
|
671
|
+
query: { orgId: "public" }
|
|
672
|
+
};
|
|
670
673
|
await syncOrg(orgId);
|
|
671
674
|
await syncPermission(orgId);
|
|
672
675
|
onBeforeChange(to.path, from.path, lastAppPath);
|