feat 跳转详情
All checks were successful
Build image / build (push) Successful in 32s

This commit is contained in:
timerzz 2024-12-11 14:23:24 +08:00
parent 2cabc8102a
commit 55cf6034c0
2 changed files with 18 additions and 0 deletions

View File

@ -22,6 +22,11 @@
<a-image :src="record.image"/>
</div>
</template>
<template v-else-if="column.key === 'detail'">
<router-link target="_blank" :to="{ path: '/article/detail', query: {id: record.ArticleID} }">
详情
</router-link>
</template>
<template v-else-if="column.key === 'skuID'">
<a v-if="record.skuID !== '' " :href="record.link" target="_blank">{{record.skuID}}</a>
<span v-else>正在抓取信息</span>
@ -104,6 +109,10 @@ const columns = [
title: '图片',
key: 'image',
},
{
title: '详情',
key: 'detail',
},
{
title: '品牌',
dataIndex: 'brand',

View File

@ -19,6 +19,11 @@
<a-image :src="record.image"/>
</div>
</template>
<template v-else-if="column.key === 'detail'">
<router-link target="_blank" :to="{ path: '/article/detail', query: {id: record.ArticleID} }">
详情
</router-link>
</template>
<template v-else-if="column.key === 'skuID'">
<a v-if="record.skuID !== '' " :href="record.link" target="_blank">{{record.skuID}}</a>
<span v-else>正在抓取信息</span>
@ -100,6 +105,10 @@ const columns = [
title: '图片',
key: 'image',
},
{
title: '详情',
key: 'detail',
},
{
title: '品牌',
dataIndex: 'brand',