fix: 解决冲突
This commit is contained in:
commit
f09e7d27a6
124 files changed
+29220
-5809
No files matched your search
@@ -1,17 +1,20 @@
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
* features/workspace/components/WorkspaceSidebar.vue
|
||||
* 工作台左侧导航:业务一级/二级目录、返回聊天与退出登录。
|
||||
* 工作台左侧导航:子路由链接、关联服务入口、返回聊天与退出登录。
|
||||
* 依赖:WORKSPACE_PATHS、workspace.context、ExternalSystemLinks。
|
||||
* 逻辑:底部关联服务复用 ws-nav-btn,与返回聊天/退出登录对齐。
|
||||
*/
|
||||
import { computed, inject, onBeforeUnmount, onMounted, ref, watch } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import {
|
||||
LayoutGrid, Bot, FileText, User, LogOut, Edit, Megaphone, Clock, Package, PanelLeftClose, PanelLeftOpen,
|
||||
LayoutGrid, Bot, FileText, User, LogOut, Edit, Megaphone, Clock, Package, PanelLeftClose, PanelLeftOpen, ClipboardCheck,
|
||||
ChevronDown, ChevronRight, ContactRound, ListChecks, Inbox,
|
||||
} from 'lucide-vue-next';
|
||||
import { WORKSPACE_PATHS } from '../constants/routes';
|
||||
import { WORKSPACE_KEY } from '../composables/workspace.context';
|
||||
import { useShippingTodoBadge } from '../composables/useShippingTodoBadge';
|
||||
import { ExternalSystemLinks } from '@/features/sso';
|
||||
|
||||
const props = defineProps<{
|
||||
collapsed?: boolean;
|
||||
@@ -31,6 +34,7 @@ const primaryLinkItems = [
|
||||
] as const;
|
||||
|
||||
const secondaryLinkItems = [
|
||||
{ path: WORKSPACE_PATHS.accountingVoucherCheck, labelKey: 'workspace.nav.accountingVoucherCheck', icon: ClipboardCheck, match: ['workspace-accounting-voucher-check'] },
|
||||
{ path: WORKSPACE_PATHS.feedback, labelKey: 'workspace.nav.feedback', icon: Edit, match: ['workspace-feedback'] },
|
||||
{ path: WORKSPACE_PATHS.updates, labelKey: 'workspace.nav.updates', icon: Megaphone, match: ['workspace-updates'] },
|
||||
] as const;
|
||||
@@ -209,6 +213,12 @@ onBeforeUnmount(() => {
|
||||
|
||||
<div class="border-t border-subtle pt-4">
|
||||
<div class="space-y-2">
|
||||
<ExternalSystemLinks
|
||||
:compact="Boolean(collapsed)"
|
||||
:show-label="!collapsed"
|
||||
:button-class="collapsed ? 'ws-nav-btn justify-center px-0' : 'ws-nav-btn'"
|
||||
icon-class="h-[18px] w-[18px] shrink-0"
|
||||
/>
|
||||
<button
|
||||
type="button"
|
||||
@click="ws.navigateToGeneralChat"
|
||||
|
||||
Reference in new issue
Block a user