预览地址增加 rel="noopener noreferrer”

This commit is contained in:
jacky 2024-04-28 22:21:41 +08:00
parent 0588c92e65
commit 303eaa2a9a
2 changed files with 3 additions and 2 deletions

View File

@ -51,7 +51,8 @@
<el-table-column align="left" label="标题/副标题" min-width="400" prop="title"> <el-table-column align="left" label="标题/副标题" min-width="400" prop="title">
<template #default="scope"> <template #default="scope">
<div> <div>
<el-link type="primary" :href="getArticlePreviewPath(scope.row.ID)" target="_blank"> <el-link type="primary" :href="getArticlePreviewPath(scope.row.ID)" target="_blank"
rel="noopener noreferrer">
<el-text :line-clamp="2"> {{ scope.row.title }}</el-text> <el-text :line-clamp="2"> {{ scope.row.title }}</el-text>
</el-link> </el-link>
</div> </div>

View File

@ -13,7 +13,7 @@
<el-table-column align="left" label="预览" min-width="120" prop="preview"> <el-table-column align="left" label="预览" min-width="120" prop="preview">
<template #default="scope"> <template #default="scope">
<el-link type="primary" :href="'http://w1.zkzk.org.cn/channel/' + scope.row.ID + '.html'" <el-link type="primary" :href="'http://w1.zkzk.org.cn/channel/' + scope.row.ID + '.html'"
target="_blank">预览</el-link> rel="noopener noreferrer" target="_blank">预览</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="left" label="摘要" min-width="260" prop="description" /> <el-table-column align="left" label="摘要" min-width="260" prop="description" />