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
commit 27d09d1783
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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