feat: show path variable friendly in tool edit (#7344)

This commit is contained in:
wellCh4n 2024-08-16 14:09:25 +08:00 committed by GitHub
parent a2fafee53a
commit 9e6b755f62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,7 +169,7 @@ const EditCustomCollectionModal: FC<Props> = ({
return '' return ''
try { try {
const path = new URL(url).pathname const path = decodeURI(new URL(url).pathname)
return path || '' return path || ''
} }
catch (e) { catch (e) {