From 82026370ec220a80d598bbd6de8125280beebde3 Mon Sep 17 00:00:00 2001
From: Soulter <905617992@qq.com>
Date: Tue, 29 Apr 2025 11:16:45 +0800
Subject: [PATCH] =?UTF-8?q?=E2=9C=A8feat:=20=E6=8F=92=E4=BB=B6=E6=94=AF?=
=?UTF-8?q?=E6=8C=81=E5=9F=BA=E4=BA=8E=20Star=20=E5=92=8C=20updated=5Fat?=
=?UTF-8?q?=20=E6=8E=92=E5=BA=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
dashboard/src/stores/common.js | 2 ++
dashboard/src/views/ExtensionMarketplace.vue | 15 +++++++--------
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/dashboard/src/stores/common.js b/dashboard/src/stores/common.js
index 49f55f5db..410fcc7ce 100644
--- a/dashboard/src/stores/common.js
+++ b/dashboard/src/stores/common.js
@@ -145,6 +145,8 @@ export const useCommonStore = defineStore({
"tags": res.data.data[key]?.tags ? res.data.data[key].tags : [],
"logo": res.data.data[key]?.logo ? res.data.data[key].logo : "",
"pinned": res.data.data[key]?.pinned ? res.data.data[key].pinned : false,
+ "stars": res.data.data[key]?.stars ? res.data.data[key].stars : 0,
+ "updated_at": res.data.data[key]?.updated_at ? res.data.data[key].updated_at : "",
})
}
this.pluginMarketData = data;
diff --git a/dashboard/src/views/ExtensionMarketplace.vue b/dashboard/src/views/ExtensionMarketplace.vue
index 2e270d473..64914deed 100644
--- a/dashboard/src/views/ExtensionMarketplace.vue
+++ b/dashboard/src/views/ExtensionMarketplace.vue
@@ -99,15 +99,13 @@ import 'highlight.js/styles/github.css';
-
-
-
-
+ {{ item.stars }}
+
+
+ {{ new Date(item.updated_at).toLocaleString() }}
+
+
无
{{ tag
@@ -283,6 +281,7 @@ export default {
{ title: '描述', key: 'desc', maxWidth: '250px' },
{ title: '作者', key: 'author', maxWidth: '70px' },
{ title: 'Star数', key: 'stars', maxWidth: '100px' },
+ { title: '最近更新', key: 'updated_at', maxWidth: '100px' },
{ title: '标签', key: 'tags', maxWidth: '100px' },
{ title: '操作', key: 'actions', sortable: false }
],