feat: 互动记录文章标题支持点击跳转详情页(el-link)

This commit is contained in:
stefanfeng
2026-04-01 16:12:22 +08:00
parent b27bc216e3
commit 7448fdcba1

View File

@@ -30,16 +30,7 @@
</el-table-column>
<el-table-column label="文章" min-width="180" show-overflow-tooltip>
<template #default="{ row }">
<el-tooltip v-if="row.article_id" content="点击查看文章详情" placement="top">
<a
:href="getArticleUrl(row.article_id)"
target="_blank"
style="font-size:13px;color:var(--el-color-primary);text-decoration:none;cursor:pointer"
@mouseover="$event.target.style.textDecoration='underline'"
@mouseout="$event.target.style.textDecoration='none'"
>{{ row.article_title || row.article_id }}</a>
</el-tooltip>
<span v-else style="font-size:13px">{{ row.article_title || '--' }}</span>
<el-link :href="getArticleUrl(row.article_id)" target="_blank" type="primary" style="font-size:13px">{{ row.article_title || row.article_id || '--' }}</el-link>
</template>
</el-table-column>
<el-table-column label="类型" width="80" align="center">