From 554a7dfbd74dcc6923475aa6ef9111585779e7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Wed, 7 Jan 2026 04:01:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A6=96=E9=A1=B5=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E6=B8=B2=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/custom/TheIconLocal.vue | 22 ++++++++++++++++++++++ web/src/views/app/AppView.vue | 4 ++-- web/src/views/app/EnvironmentView.vue | 4 ++-- web/src/views/apps/openresty/route.ts | 22 ++++++++++++++++++++++ web/src/views/home/IndexView.vue | 12 +++++++----- 5 files changed, 55 insertions(+), 9 deletions(-) create mode 100644 web/src/components/custom/TheIconLocal.vue create mode 100644 web/src/views/apps/openresty/route.ts diff --git a/web/src/components/custom/TheIconLocal.vue b/web/src/components/custom/TheIconLocal.vue new file mode 100644 index 00000000..ede18555 --- /dev/null +++ b/web/src/components/custom/TheIconLocal.vue @@ -0,0 +1,22 @@ + + + diff --git a/web/src/views/app/AppView.vue b/web/src/views/app/AppView.vue index b04b41db..5a5d3be8 100644 --- a/web/src/views/app/AppView.vue +++ b/web/src/views/app/AppView.vue @@ -102,7 +102,7 @@ const columns: any = [ NButton, { size: 'small', - type: 'success', + type: 'info', onClick: () => handleManage(row.slug) }, { @@ -146,7 +146,7 @@ const columns: any = [ NButton, { size: 'small', - type: 'info', + type: 'success', onClick: () => { versionModalShow.value = true versionModalOperation.value = $gettext('Install') diff --git a/web/src/views/app/EnvironmentView.vue b/web/src/views/app/EnvironmentView.vue index 2c40c8f2..e6c2bc7c 100644 --- a/web/src/views/app/EnvironmentView.vue +++ b/web/src/views/app/EnvironmentView.vue @@ -86,7 +86,7 @@ const columns: any = [ NButton, { size: 'small', - type: 'success' + type: 'info' //onClick: () => handleManage(row.slug) }, { @@ -138,7 +138,7 @@ const columns: any = [ NButton, { size: 'small', - type: 'primary' + type: 'success' }, { default: () => $gettext('Install') diff --git a/web/src/views/apps/openresty/route.ts b/web/src/views/apps/openresty/route.ts new file mode 100644 index 00000000..c531d659 --- /dev/null +++ b/web/src/views/apps/openresty/route.ts @@ -0,0 +1,22 @@ +import type { RouteType } from '~/types/router' + +const Layout = () => import('@/layout/IndexView.vue') + +export default { + name: 'openresty', + path: '/apps/openresty', + component: Layout, + isHidden: true, + children: [ + { + name: 'apps-openresty-index', + path: '', + component: () => import('../nginx/IndexView.vue'), + meta: { + title: 'OpenResty', + role: ['admin'], + requireAuth: true + } + } + ] +} as RouteType diff --git a/web/src/views/home/IndexView.vue b/web/src/views/home/IndexView.vue index 60bc8fea..f62e2d2f 100644 --- a/web/src/views/home/IndexView.vue +++ b/web/src/views/home/IndexView.vue @@ -1,4 +1,6 @@