[fix bug88236] 友情链接管理现在链接不能点击了

This commit is contained in:
fengchenchen
2024-08-07 18:35:47 +08:00
parent 7c4ae72eea
commit fe895182de
@@ -52,6 +52,14 @@
</div>
</template>
<template slot="link" slot-scope="{text}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || global.emptyLine }}</template>
<div class="table-text can-click-table-text" v-if="text" @click="toLink(text)">{{ text }}</div>
<div v-else class="table-text">{{ global.emptyLine }}</div>
</a-tooltip>
</template>
<template v-slot:action="{text, record}">
<a @click="handleEdit(record)" v-has="'sys:friendshipLink:edit'">{{ $t('edit') }}</a>
<a-divider type="vertical" v-if="isHasPermission('sys:friendshipLink:edit') && isHasPermission('sys:friendshipLink:delete')" />
@@ -135,7 +143,10 @@ export default {
}
},
methods: {
isHasPermission
isHasPermission,
toLink (href) {
window.open(href)
}
}
}
</script>