Skip to content

Commit

Permalink
feat(doc-ui/module-install): Egern
Browse files Browse the repository at this point in the history
Update constants.ts
  • Loading branch information
VirgilClyne committed Dec 5, 2024
1 parent e22bdc6 commit bb9b0b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/doc-ui/src/module-install/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ export const APP_INSTALL_INFO_MAP: Record<
},
},
egern: {
urlTemplate: null,
urlTemplate: (url) => {
const result = new URL('egern:///modules/new');
result.searchParams.set('url', url);
return result.toString();
},
manualInstall: {
urlTitle: '模块地址',
path: '工具 > 模块',
Expand Down

0 comments on commit bb9b0b6

Please sign in to comment.