refactor: simplify link to bv

This commit is contained in:
YunYouJun
2022-06-05 18:30:49 +08:00
parent 8d7021bcfd
commit 34eb9b34e0
8 changed files with 1316 additions and 1169 deletions

View File

@@ -24,7 +24,7 @@ const triggerGtm = (val: string) => {
<template>
<a
:href="dish.link" target="_blank" class="tag rounded" p="x-2"
:href="dish.link || `https://www.bilibili.com/video/${dish.bv}`" target="_blank" class="tag rounded" p="x-2"
border="~ blue-200 dark:blue-800"
bg="blue-300 opacity-20"
@click="triggerGtm(dish.name)"