fix(System Management): Click the logo here to go to user management by default

This commit is contained in:
dataeaseShu
2025-09-24 18:26:10 +08:00
committed by dataeaseShu
parent 25024557c6
commit 04179c753f
2 changed files with 24 additions and 14 deletions
+5 -1
View File
@@ -46,6 +46,10 @@ const toWorkspace = () => {
const toChatIndex = () => {
router.push('/chat/index')
}
const toUserIndex = () => {
router.push('/system/user')
}
const route = useRoute()
const showSysmenu = computed(() => {
return route.path.includes('/system')
@@ -56,7 +60,7 @@ const showSysmenu = computed(() => {
<div class="system-layout">
<div class="left-side" :class="collapse && 'left-side-collapse'">
<template v-if="showSysmenu">
<div @click="toChatIndex" class="sys-management">
<div @click="toUserIndex" class="sys-management">
<custom_small
v-if="appearanceStore.themeColor !== 'default'"
:style="{ marginLeft: collapse ? '5px' : 0 }"
+19 -13
View File
@@ -234,18 +234,6 @@ const getTableData = () => {
cells.value.push(
graph.createNode({
...item,
attrs: {
label: {
text: item.attrs.text.text,
textAnchor: 'left',
refX: 10,
textWrap: {
width: 140,
height: 24,
ellipsis: true,
},
},
},
height: LINE_HEIGHT,
width: NODE_WIDTH,
})
@@ -275,7 +263,25 @@ const addNode = (node: any) => {
if (!graph) {
initGraph()
}
graph.addNode(graph.createNode({ ...node, height: LINE_HEIGHT, width: NODE_WIDTH }))
graph.addNode(
graph.createNode({
...node,
attrs: {
label: {
text: node.label,
textAnchor: 'left',
refX: 10,
textWrap: {
width: 140,
height: 24,
ellipsis: true,
},
},
},
height: LINE_HEIGHT,
width: NODE_WIDTH,
})
)
}
const clickTable = (table: any) => {