@freelog/tools-lib 0.1.145 → 0.1.146
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/tools-lib.cjs.development.js +16 -14
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +16 -14
- package/dist/tools-lib.esm.js.map +1 -1
- package/dist/utils/linkTo.d.ts +2 -1
- package/package.json +1 -1
- package/src/utils/linkTo.ts +5 -3
package/dist/utils/linkTo.d.ts
CHANGED
|
@@ -99,8 +99,9 @@ interface NodeCreateSuccessParamsType {
|
|
|
99
99
|
export declare function nodeCreateSuccess({ nodeID }: NodeCreateSuccessParamsType): string;
|
|
100
100
|
interface InvitationParamsType {
|
|
101
101
|
goTo?: string;
|
|
102
|
+
invitationCode?: string;
|
|
102
103
|
}
|
|
103
|
-
export declare function invitation({ ...params }?: InvitationParamsType): string;
|
|
104
|
+
export declare function invitation({ goTo, ...params }?: InvitationParamsType): string;
|
|
104
105
|
interface Exception403ParamsType {
|
|
105
106
|
from?: string;
|
|
106
107
|
}
|
package/package.json
CHANGED
package/src/utils/linkTo.ts
CHANGED
|
@@ -230,15 +230,17 @@ export function nodeCreateSuccess({nodeID}: NodeCreateSuccessParamsType) {
|
|
|
230
230
|
return `/result/node/create/success/${nodeID}`;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
//
|
|
233
|
+
// 内测资格申请
|
|
234
234
|
interface InvitationParamsType {
|
|
235
235
|
goTo?: string;
|
|
236
|
+
invitationCode?: string;
|
|
236
237
|
}
|
|
237
238
|
|
|
238
|
-
export function invitation({...params}: InvitationParamsType = {}) {
|
|
239
|
+
export function invitation({goTo, ...params}: InvitationParamsType = {}) {
|
|
239
240
|
// console.log(params.goTo, 'goTo9iowjefklsdj;flksdjflk')
|
|
240
241
|
return `/invitation${handleQuery({
|
|
241
|
-
|
|
242
|
+
...params,
|
|
243
|
+
returnUrl: goTo ? encodeURIComponent(goTo) : undefined,
|
|
242
244
|
})}`;
|
|
243
245
|
}
|
|
244
246
|
|