From fb00ba812aad304bfe04849c3d2c441a5e38254f Mon Sep 17 00:00:00 2001
From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com>
Date: Mon, 4 Sep 2023 22:22:18 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=A3=E5=86=B3=E5=BF=AB=E9=80=9F?=
=?UTF-8?q?=E5=AE=89=E8=A3=85=E5=BA=94=E7=94=A8=E8=B7=B3=E8=BD=AC=E5=A4=B1?=
=?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98=20(#2178)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/components/app-status/index.vue | 2 +-
frontend/src/routers/modules/app-store.ts | 11 ----
frontend/src/views/app-store/apps/index.vue | 10 +++
frontend/src/views/app-store/detail/index.vue | 64 +++++++++----------
.../views/app-store/detail/install/index.vue | 11 +++-
.../views/app-store/detail/params/index.vue | 4 +-
frontend/src/views/database/mysql/index.vue | 4 +-
frontend/src/views/database/redis/index.vue | 2 +-
frontend/src/views/home/app/index.vue | 2 +-
.../src/views/host/file-management/index.vue | 2 +
10 files changed, 59 insertions(+), 53 deletions(-)
diff --git a/frontend/src/components/app-status/index.vue b/frontend/src/components/app-status/index.vue
index 23aac8b27..725d63515 100644
--- a/frontend/src/components/app-status/index.vue
+++ b/frontend/src/components/app-status/index.vue
@@ -130,7 +130,7 @@ const setting = () => {
};
const goRouter = async (key: string) => {
- router.push({ name: 'AppDetail', params: { appKey: key } });
+ router.push({ name: 'AppAll', query: { install: key } });
};
const onCheck = async () => {
diff --git a/frontend/src/routers/modules/app-store.ts b/frontend/src/routers/modules/app-store.ts
index 61dc2367c..d056def49 100644
--- a/frontend/src/routers/modules/app-store.ts
+++ b/frontend/src/routers/modules/app-store.ts
@@ -28,17 +28,6 @@ const appStoreRouter = {
requiresAuth: false,
},
},
- {
- path: 'detail/:appKey',
- name: 'AppDetail',
- component: () => import('@/views/app-store/detail/index.vue'),
- props: true,
- hidden: true,
- meta: {
- activeMenu: '/apps',
- requiresAuth: false,
- },
- },
{
path: 'installed',
name: 'AppInstalled',
diff --git a/frontend/src/views/app-store/apps/index.vue b/frontend/src/views/app-store/apps/index.vue
index a44839cb8..b91b29ddb 100644
--- a/frontend/src/views/app-store/apps/index.vue
+++ b/frontend/src/views/app-store/apps/index.vue
@@ -176,6 +176,7 @@ const canUpdate = ref(false);
const syncing = ref(false);
const detailRef = ref();
const installRef = ref();
+const installKey = ref('');
const getColor = (index: number) => {
return colorArr[index];
@@ -245,6 +246,15 @@ const searchByName = (name: string) => {
};
onMounted(() => {
+ if (router.currentRoute.value.query.install) {
+ installKey.value = String(router.currentRoute.value.query.install);
+ const params = {
+ app: {
+ key: installKey.value,
+ },
+ };
+ installRef.value.acceptParams(params);
+ }
search(req);
});
diff --git a/frontend/src/views/app-store/detail/index.vue b/frontend/src/views/app-store/detail/index.vue
index 0c76fd613..a4942e967 100644
--- a/frontend/src/views/app-store/detail/index.vue
+++ b/frontend/src/views/app-store/detail/index.vue
@@ -4,41 +4,35 @@