Skip to content

Commit 4e9b38b

Browse files
committed
fix(System Management): Click the logo here to go to user management by default
1 parent 2502455 commit 4e9b38b

File tree

2 files changed

+24
-14
lines changed

2 files changed

+24
-14
lines changed

frontend/src/components/layout/LayoutDsl.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ const toWorkspace = () => {
4646
const toChatIndex = () => {
4747
router.push('/chat/index')
4848
}
49+
50+
const toUserIndex = () => {
51+
router.push('/system/user')
52+
}
4953
const route = useRoute()
5054
const showSysmenu = computed(() => {
5155
return route.path.includes('/system')
@@ -56,7 +60,7 @@ const showSysmenu = computed(() => {
5660
<div class="system-layout">
5761
<div class="left-side" :class="collapse && 'left-side-collapse'">
5862
<template v-if="showSysmenu">
59-
<div @click="toChatIndex" class="sys-management">
63+
<div @click="toUserIndex" class="sys-management">
6064
<custom_small
6165
v-if="appearanceStore.themeColor !== 'default'"
6266
:style="{ marginLeft: collapse ? '5px' : 0 }"

frontend/src/views/ds/TableRelationship.vue

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -234,18 +234,6 @@ const getTableData = () => {
234234
cells.value.push(
235235
graph.createNode({
236236
...item,
237-
attrs: {
238-
label: {
239-
text: item.attrs.text.text,
240-
textAnchor: 'left',
241-
refX: 10,
242-
textWrap: {
243-
width: 140,
244-
height: 24,
245-
ellipsis: true,
246-
},
247-
},
248-
},
249237
height: LINE_HEIGHT,
250238
width: NODE_WIDTH,
251239
})
@@ -275,7 +263,25 @@ const addNode = (node: any) => {
275263
if (!graph) {
276264
initGraph()
277265
}
278-
graph.addNode(graph.createNode({ ...node, height: LINE_HEIGHT, width: NODE_WIDTH }))
266+
graph.addNode(
267+
graph.createNode({
268+
...node,
269+
attrs: {
270+
label: {
271+
text: node.label,
272+
textAnchor: 'left',
273+
refX: 10,
274+
textWrap: {
275+
width: 140,
276+
height: 24,
277+
ellipsis: true,
278+
},
279+
},
280+
},
281+
height: LINE_HEIGHT,
282+
width: NODE_WIDTH,
283+
})
284+
)
279285
}
280286
281287
const clickTable = (table: any) => {

0 commit comments

Comments
 (0)