@nocobase/client-v2 3.0.0-alpha.4 → 3.0.0-alpha.5

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.
@@ -50,18 +50,22 @@ export declare function getCurrentV2RedirectPath(app: AppLike, locationLike: Loc
50
50
  *
51
51
  * @param app 当前 v2 应用实例
52
52
  * @param targetPath 登录后回跳地址
53
+ * @param options 可选的登录路由配置
53
54
  * @returns 指向 v2 登录页的 href
54
55
  */
55
- export declare function buildV2SigninHref(app: AppLike, targetPath: string): string;
56
+ export declare function buildV2SigninHref(app: AppLike, targetPath: string, options?: {
57
+ signInRoutePath?: string;
58
+ }): string;
56
59
  /**
57
60
  * 通过整页跳转进入 v2 登录页。
58
61
  *
59
62
  * @param app 当前 v2 应用实例
60
63
  * @param targetPath 登录后回跳地址
61
- * @param options 跳转选项
64
+ * @param options 跳转和登录路由选项
62
65
  */
63
66
  export declare function redirectToV2Signin(app: AppLike, targetPath: string, options?: {
64
67
  replace?: boolean;
68
+ signInRoutePath?: string;
65
69
  }): void;
66
70
  /**
67
71
  * 解析并校验服务端返回的 v2 登录页地址。