Commit a5fdfa7a by haojie

1

parent 7c091797
......@@ -89,7 +89,23 @@ export default defineComponent({
align: 'center',
className: 'td-account-name',
},
{
title: '查看视频',
colKey: 'operation',
align: 'center',
className: 'td-account-name',
},
];
// 操作项
const onOperation = ({ row }: any) => {
// 获取链接
const href = `https://www.tiktok.com/@${row.account.name}/video/${row.video_id}`;
return (
<a href={href} target="_blank">
链接
</a>
);
};
return () => (
<div class="custom-video-players-table">
<t-table
......@@ -99,6 +115,9 @@ export default defineComponent({
hover
ShowJumper
loading={loading.value}
v-slots={{
operation: onOperation,
}}
></t-table>
<div class="custom-pagination-box">
<t-pagination
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment