Revert "chore: make Lite edition support and related configurations hidden"
This reverts commit 88d5b303b8.
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<div class="logo_row" v-if="!uiStore.sidebarCollapsed">
|
||||
<div class="logo_box" @click="router.push('/platform/knowledge-bases')" style="cursor: pointer;">
|
||||
<img class="logo" src="@/assets/img/weknora.png" alt="">
|
||||
<span v-if="isLiteEdition" class="lite-badge">Lite</span>
|
||||
</div>
|
||||
<div class="sidebar-toggle"
|
||||
@click="uiStore.toggleSidebar"
|
||||
@@ -137,6 +138,7 @@ import { MessagePlugin, DialogPlugin, Icon as TIcon } from "tdesign-vue-next";
|
||||
import UserMenu from '@/components/UserMenu.vue';
|
||||
import TenantSelector from '@/components/TenantSelector.vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { getSystemInfo } from '@/api/system';
|
||||
|
||||
const { t } = useI18n();
|
||||
const usemenuStore = useMenuStore();
|
||||
@@ -157,6 +159,7 @@ const hasMore = computed(() => currentPage.value < totalPages.value);
|
||||
type MenuItem = { title: string; icon: string; path: string; childrenPath?: string; children?: any[] };
|
||||
const { menuArr } = storeToRefs(usemenuStore);
|
||||
let activeSubmenu = ref<string>('');
|
||||
const isLiteEdition = ref(false);
|
||||
|
||||
// 批量管理状态
|
||||
const batchMode = ref(false)
|
||||
@@ -539,6 +542,10 @@ onMounted(async () => {
|
||||
currentSecondpath.value = `chat/${route.params.chatid}`;
|
||||
}
|
||||
|
||||
getSystemInfo().then(res => {
|
||||
isLiteEdition.value = res.data?.edition === 'lite'
|
||||
}).catch(() => {})
|
||||
|
||||
// 初始化知识库信息
|
||||
const kbId = (route.params as any)?.kbId as string
|
||||
if (kbId && isInKnowledgeBase.value) {
|
||||
@@ -836,6 +843,19 @@ const onDragHandleMouseDown = (e: MouseEvent) => {
|
||||
width: 134px;
|
||||
height: auto;
|
||||
}
|
||||
.lite-badge {
|
||||
margin-left: 4px;
|
||||
padding: 1px 6px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
line-height: 18px;
|
||||
color: #07c05f;
|
||||
background: #07c05f1a;
|
||||
border: 1px solid #07c05f40;
|
||||
border-radius: 4px;
|
||||
letter-spacing: 0.5px;
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
|
||||
.logo_img {
|
||||
|
||||
Reference in New Issue
Block a user