refactor(frontend): 重构前端第三版
This commit is contained in:
1 parent
bf32f8b954
commit
dc141d19a2
49 files changed
+5333
-4234
No files matched your search
@@ -19,7 +19,7 @@ export function useWorkspaceSession(deps: WorkspaceDeps, options: SessionOptions
|
||||
|
||||
const isLoggedIn = computed(() => !!currentUser.value && currentUser.value.role !== 'guest');
|
||||
const hasKnowledgeBaseAccess = computed(
|
||||
() => String(currentUser.value?.username || '').trim().toLowerCase() === 'admin',
|
||||
() => String(currentUser.value?.role || '').trim().toLowerCase() === 'admin',
|
||||
);
|
||||
|
||||
const loadAuthUser = () => {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* @deprecated 请使用 @/features/chat/pages/HistoryPage.vue
|
||||
* @deprecated 请使用 @/features/chat/history/HistoryPage.vue
|
||||
*/
|
||||
import HistoryPage from '@/features/chat/pages/HistoryPage.vue';
|
||||
import HistoryPage from '@/features/chat/history/HistoryPage.vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* features/workspace/pages/KnowledgeBasePage.vue
|
||||
* 知识库管理嵌入页,复用 KbWorkspaceView 的 embedded 模式。
|
||||
* 知识库作业面嵌入页,复用 KbWorkspaceView 的 embedded 模式。
|
||||
*/
|
||||
import KbWorkspaceView from '@/views/KbWorkspaceView.vue';
|
||||
import KbWorkspaceView from '@/features/kb/views/KbWorkspaceView.vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
@@ -94,6 +94,6 @@ export const SECTION_TITLE_KEY_MAP: Record<string, string> = {
|
||||
};
|
||||
|
||||
export const DEFAULT_POST_LOGIN_AGENT_ID = 16;
|
||||
export const KB_ACCESS_DENIED_MESSAGE = '暂无权限,请登录admin账号操作知识库!';
|
||||
export const KB_ACCESS_DENIED_MESSAGE = '需要管理员权限才能访问知识库。';
|
||||
export const WS_SCHEDULE_FILTER_INPUT_CLASS = 'admin-table-filter-input text-xs py-1.5 px-2';
|
||||
export const CHANGE_PASSWORD_ENABLED = true;
|
||||
Reference in new issue
Block a user