From ad9024b0b5f5b9f599935a0930b657def7e53121 Mon Sep 17 00:00:00 2001 From: Virgil Clyne Date: Wed, 13 Nov 2024 09:26:24 +0800 Subject: [PATCH] feat(doc-ui): module-install Update constants.ts --- packages/doc-ui/src/module-install/constants.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/doc-ui/src/module-install/constants.ts b/packages/doc-ui/src/module-install/constants.ts index 5e9e691..1d04561 100644 --- a/packages/doc-ui/src/module-install/constants.ts +++ b/packages/doc-ui/src/module-install/constants.ts @@ -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(); }, @@ -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: '覆写地址',