From 20e11f5c877d6e408b62c0fba7896c0412be7092 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Fri, 13 Jun 2025 17:59:21 +0800 Subject: [PATCH] feat: application --- ui/src/components/folder-tree/index.vue | 14 ++------------ ui/src/router/routes.ts | 2 +- ui/src/stores/modules/application.ts | 20 ++++++++++---------- ui/src/views/application/index.vue | 21 +++++++++++++++++++++ 4 files changed, 34 insertions(+), 23 deletions(-) diff --git a/ui/src/components/folder-tree/index.vue b/ui/src/components/folder-tree/index.vue index e914809a..cd1dbba4 100644 --- a/ui/src/components/folder-tree/index.vue +++ b/ui/src/components/folder-tree/index.vue @@ -13,11 +13,8 @@ class="shared-knowledge" :class="currentNodeKey === 'share' && 'active'" > - - {{ $t('views.system.share_knowledge') }} + + {{ $t('views.system.share_knowledge') }} { width: 100%; height: 1px; } - - .name { - font-weight: 500; - font-size: 14px; - line-height: 22px; - margin-left: 8px; - } } diff --git a/ui/src/router/routes.ts b/ui/src/router/routes.ts index 7f470824..7f1220e3 100644 --- a/ui/src/router/routes.ts +++ b/ui/src/router/routes.ts @@ -6,7 +6,7 @@ export const routes: Array = [ { path: '/', name: 'home', - redirect: '/knowledge', + redirect: '/application', children: [...rolesRoutes], }, diff --git a/ui/src/stores/modules/application.ts b/ui/src/stores/modules/application.ts index 804c531a..9c876199 100644 --- a/ui/src/stores/modules/application.ts +++ b/ui/src/stores/modules/application.ts @@ -80,16 +80,16 @@ const useApplicationStore = defineStore('application', { authentication_value?: any, ) { return new Promise((resolve, reject) => { - applicationApi - .postAppAuthentication(token, loading, authentication_value) - .then((res) => { - localStorage.setItem(`${token}-accessToken`, res.data) - sessionStorage.setItem(`${token}-accessToken`, res.data) - resolve(res) - }) - .catch((error) => { - reject(error) - }) + // applicationApi + // .postAppAuthentication(token, loading, authentication_value) + // .then((res) => { + // localStorage.setItem(`${token}-accessToken`, res.data) + // sessionStorage.setItem(`${token}-accessToken`, res.data) + // resolve(res) + // }) + // .catch((error) => { + // reject(error) + // }) }) }, async refreshAccessToken(token: string) { diff --git a/ui/src/views/application/index.vue b/ui/src/views/application/index.vue index ca56e218..a2693169 100644 --- a/ui/src/views/application/index.vue +++ b/ui/src/views/application/index.vue @@ -84,6 +84,16 @@ + +
+ +
+
+ {{ $t('components.folder.addFolder') }} +
+
+
+
@@ -214,12 +224,14 @@ +