feat(组件): 为应用详情模态框添加网站链接点击功能

This commit is contained in:
2026-04-05 10:08:45 +08:00
parent 4e9fc30616
commit b5d7708b58

View File

@@ -241,6 +241,7 @@
<div
v-if="displayApp?.website"
class="flex items-center justify-between px-1 cursor-pointer hover:bg-slate-100 dark:hover:bg-slate-800 rounded px-1 -mx-1 transition-colors"
@click.stop="openWebsite(displayApp.website)"
>
<span class="text-xs text-slate-400">网站</span>
<span
@@ -480,6 +481,12 @@ const closeMetaModal = () => {
showMetaModal.value = false;
};
const openWebsite = (url: string) => {
if (url) {
window.open(url, "_blank");
}
};
watch(
() => props.app,
(newApp: App | null) => {