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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. 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) throw new Error(`orgId not specified`);
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x-essential-lib",
3
- "version": "0.10.14",
3
+ "version": "0.10.15",
4
4
  "files": [
5
5
  "dist"
6
6
  ],