From 134e993274c610df31df38eea824820e8b2d5e0a Mon Sep 17 00:00:00 2001
From: jiwangyihao
Date: Fri, 6 Jun 2025 00:28:27 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9C=80=E6=96=B0?=
=?UTF-8?q?=E7=89=88=E6=9C=AC=E4=BF=A1=E6=81=AF=E5=92=8C=E4=B8=8B=E8=BD=BD?=
=?UTF-8?q?=E9=93=BE=E6=8E=A5=E9=80=BB=E8=BE=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app.vue | 17 ++++++++
pages/download.vue | 104 ++++++++++++++++++++++++++++++++++++++++-----
pages/index.vue | 6 ++-
3 files changed, 116 insertions(+), 11 deletions(-)
diff --git a/app.vue b/app.vue
index 69b67ce..23a407c 100644
--- a/app.vue
+++ b/app.vue
@@ -162,6 +162,23 @@ onMounted(() => {
{ immediate: true }
);
});
+
+// 数据获取
+export interface Release {
+ assets: {
+ name: string;
+ browser_download_url: string;
+ }[];
+ tag_name: string;
+ created_at: string;
+ body: string;
+}
+
+const { data: latestRelease }: { data: Ref } = await useFetch(
+ "https://gitee.com/api/v5/repos/spark-store-project/spark-store/releases/latest"
+);
+
+provide("latestRelease", latestRelease);
diff --git a/pages/download.vue b/pages/download.vue
index 0e8286f..9b5f137 100644
--- a/pages/download.vue
+++ b/pages/download.vue
@@ -1,6 +1,10 @@
@@ -105,7 +165,14 @@ watchEffect(() => {
@click="dialog = true"
>
下载最新版本
- V4.5.2 | 2025-03-15
+
+ V{{ latestRelease?.tag_name }} |
+ {{
+ new Date(latestRelease!.created_at)
+ .toLocaleDateString()
+ .replace(/\//g, "-")
+ }}
+
{
}"
/>
-
-
+
@@ -229,6 +297,9 @@ watchEffect(() => {
阅读以下安装须知,了解星火应用商店在不同发行版的安装方式。
+
+ loong64 架构的安装包不同发行版有所不同,请前往 Gitee 手动下载。
+
@@ -287,7 +370,7 @@ watchEffect(() => {
应用商店安装包下载已开始,
如果创建下载任务失败,请点击此处重试。
@@ -303,6 +386,7 @@ watchEffect(() => {
+
diff --git a/pages/index.vue b/pages/index.vue
index e5996e1..dbb8d45 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -1,4 +1,6 @@
@@ -123,7 +127,7 @@ onMounted(() => {
V4.5.2V{{ latestRelease?.tag_name }}