openxiangda 1.0.46 → 1.0.48

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openxiangda",
3
- "version": "1.0.46",
3
+ "version": "1.0.48",
4
4
  "description": "OpenXiangda CLI, workspace build tools, runtime SDK, and form components.",
5
5
  "private": false,
6
6
  "bin": {
@@ -42881,6 +42881,11 @@ var normalizeBasePath = (basePath) => {
42881
42881
  var inferBasePath = (appType) => {
42882
42882
  if (typeof window === "undefined") return "";
42883
42883
  const pathname = window.location?.pathname || "";
42884
+ const submitMarker = `/submit/${appType}/`;
42885
+ const submitMarkerIndex = pathname.indexOf(submitMarker);
42886
+ if (submitMarkerIndex > 0) {
42887
+ return pathname.slice(0, submitMarkerIndex);
42888
+ }
42884
42889
  const marker = `/${appType}/`;
42885
42890
  const markerIndex = pathname.indexOf(marker);
42886
42891
  if (markerIndex <= 0) return "";