fix: renderLink
parent
73c496946f
commit
a76e515876
|
@ -24,7 +24,7 @@ export const useRender = {
|
||||||
*/
|
*/
|
||||||
renderLink: (url, text?) => {
|
renderLink: (url, text?) => {
|
||||||
if (url) {
|
if (url) {
|
||||||
return h(Button, { type: 'link', href: text }, () => text || '')
|
return h(Button, { type: 'link', href: url, target: '_blank' }, () => text || '')
|
||||||
}
|
}
|
||||||
return ''
|
return ''
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue