mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix(System Management): Click the logo here to go to user management by default
This commit is contained in:
@@ -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 }"
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user