Skip to content

Commit

Permalink
feat(doc-ui): module-install
Browse files Browse the repository at this point in the history
Update constants.ts
  • Loading branch information
VirgilClyne committed Nov 13, 2024
1 parent d04d3f6 commit ad9024b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/doc-ui/src/module-install/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const APP_INSTALL_INFO_MAP: Record<
> = {
loon: {
urlTemplate: (url) => {
const result = new URL('https://www.nsloon.com/openloon/import');
const result = new URL('loon://import');
result.searchParams.set('plugin', url);
return result.toString();
},
Expand Down Expand Up @@ -56,7 +56,10 @@ export const APP_INSTALL_INFO_MAP: Record<
},
stash: {
urlTemplate: (url) => {
return `https://link.stash.ws/install-override/${url.replace(/^https?:\/\//, '')}`;
const result = new URL('stash://install-override');
result.searchParams.set('url', url);
return result.toString();
//return `https://link.stash.ws/install-override/${url.replace(/^https?:\/\//, '')}`;
},
manualInstall: {
urlTitle: '覆写地址',
Expand Down

0 comments on commit ad9024b

Please sign in to comment.