feat: Add support for slash commands, optimize command selector logic. (#24723)

This commit is contained in:
GuanMu
2025-08-28 21:13:18 +08:00
committed by GitHub
parent a174ee419e
commit 27d09d1783
10 changed files with 274 additions and 32 deletions

View File

@@ -32,7 +32,7 @@ export const useGetPricingPageLanguage = () => {
return getPricingPageLanguage(locale)
}
const defaultDocBaseUrl = 'https://docs.dify.ai'
export const defaultDocBaseUrl = 'https://docs.dify.ai'
export const useDocLink = (baseUrl?: string): ((path?: string, pathMap?: { [index: string]: string }) => string) => {
let baseDocUrl = baseUrl || defaultDocBaseUrl
baseDocUrl = (baseDocUrl.endsWith('/')) ? baseDocUrl.slice(0, -1) : baseDocUrl