feat 站点标题链接站点页面

This commit is contained in:
jxxghp
2023-08-19 14:56:24 +08:00
parent 511ea625a1
commit 26699c08d6

View File

@@ -234,6 +234,11 @@ async function getResourceList() {
}
}
// 打开站点页面
function openSitePage() {
window.open(cardProps.site?.url, '_blank')
}
// 装载时查询站点图标
onMounted(() => {
getSiteIcon()
@@ -258,7 +263,7 @@ onMounted(() => {
</VAvatar>
</template>
<VCardItem>
<VCardTitle class="font-bold">
<VCardTitle class="font-bold" @click.stop="openSitePage">
{{ cardProps.site?.name }}
</VCardTitle>
<VCardSubtitle>{{ cardProps.site?.url }}</VCardSubtitle>