File tree Expand file tree Collapse file tree 2 files changed +24
-14
lines changed
Expand file tree Collapse file tree 2 files changed +24
-14
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ const toWorkspace = () => {
4646const toChatIndex = () => {
4747 router .push (' /chat/index' )
4848}
49+
50+ const toUserIndex = () => {
51+ router .push (' /system/user' )
52+ }
4953const route = useRoute ()
5054const 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 }"
Original file line number Diff line number Diff 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
281287const clickTable = (table : any ) => {
You can’t perform that action at this time.
0 commit comments