diff --git a/packages/core/client/src/block-provider/hooks/index.ts b/packages/core/client/src/block-provider/hooks/index.ts index 25f1d9457a..7db7915373 100644 --- a/packages/core/client/src/block-provider/hooks/index.ts +++ b/packages/core/client/src/block-provider/hooks/index.ts @@ -1606,12 +1606,13 @@ export function useLinkActionProps(componentProps?: any) { const { t } = useTranslation(); const url = componentPropsValue?.['url']; const searchParams = componentPropsValue?.['params'] || []; + const type = componentPropsValue?.['type'] || 'default'; const openInNewWindow = fieldSchema?.['x-component-props']?.['openInNewWindow']; const { parseURLAndParams } = useParseURLAndParams(); const basenameOfCurrentRouter = useRouterBasename(); return { - type: 'default', + type, async onClick() { if (!url) { message.warning(t('Please configure the URL'));