feat: 添加演示页面下载完整版功能

- 演示页面顶部下载按钮链接到 GitHub releases 页面
- 优先跳转到最新版本,后备方案跳转到 tags 页面
- 更新按钮文本为"下载完整版"更明确

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude committed 2025-08-18 09:53:04 +08:00
1 parent 92a1dd3ad4
commit 2f014df11f
1 file changed
+8 -2
@@ -13,7 +13,7 @@
<template #icon> <template #icon>
<n-icon :component="DownloadOutline" /> <n-icon :component="DownloadOutline" />
</template> </template>
下载 下载完整版
</n-button> </n-button>
</div> </div>
</div> </div>
@@ -163,7 +163,13 @@ const message = useMessage()
const isDemoMode = computed(() => environmentDetector.shouldUseMockData()) const isDemoMode = computed(() => environmentDetector.shouldUseMockData())
const handleDownload = () => { const handleDownload = () => {
message.info('完整版本下载功能即将开放,敬请期待!') // 尝试打开最新版本,如果不可用则跳转到 tags 页面
try {
window.open('https://github.com/duyl328/NetVizor/releases/latest', '_blank')
} catch (error) {
// 后备方案:跳转到 tags 页面
window.open('https://github.com/duyl328/NetVizor/tags', '_blank')
}
} }
// endregion // endregion
</script> </script>