mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 05:29:26 +08:00
fix: cannot set highlight style for link action button (#5780)
This commit is contained in:
parent
c4873828fa
commit
38e79d41af
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user