@zjlab-fe/util 0.8.0 → 0.9.0

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/README.md CHANGED
@@ -217,7 +217,12 @@ interface SubAppInitData {
217
217
  */
218
218
  interface ISubAppInitConfig {
219
219
  /** 账号信息数据会存放在window[namespace]下,默认值是_subApp,默认会将账号信息数据同步到window._subApp下 */
220
- namespace: string;
220
+ namespace?: string;
221
+ /** 如果传入,表示子应用路由变更时要替换父应用的路由 */
222
+ replaceMainAppRoute?: {
223
+ /** 父路由前缀 */
224
+ mainAppRoutePrefix: string;
225
+ };
221
226
  }
222
227
  /**
223
228
  * 子应用初始化