Skip to content

Commit ca57be2

Browse files
committed
fix(appearance): After selecting Tech Blue, it will automatically replace buttons, pictures, etc. with corresponding color values.
1 parent e92a97e commit ca57be2

File tree

14 files changed

+99
-58
lines changed

14 files changed

+99
-58
lines changed
1.13 KB
Loading
4.66 KB
Loading
831 Bytes
Loading
112 KB
Loading

frontend/src/components/layout/Menu.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ const routerList = computed(() => {
7676
.ed-menu-item {
7777
height: 40px !important;
7878
border-radius: 6px !important;
79+
margin-bottom: 2px;
7980
&.is-active {
8081
background-color: #fff !important;
8182
border-radius: 6px;

frontend/src/components/layout/MenuItem.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useRouter, useRoute } from 'vue-router'
55
import chat from '@/assets/svg/menu/icon_chat_filled.svg'
66
import noChat from '@/assets/svg/menu/icon_chat_outlined.svg'
77
import dashboard from '@/assets/svg/menu/icon_dashboard_filled.svg'
8+
import { useEmitt } from '@/utils/useEmitt'
89
import noDashboard from '@/assets/svg/menu/icon_dashboard_outlined.svg'
910
import ds from '@/assets/svg/menu/icon_database_filled.svg'
1011
import noDs from '@/assets/svg/menu/icon_database_outlined.svg'
@@ -58,6 +59,9 @@ const MenuItem = defineComponent({
5859
}
5960
6061
const handleMenuClick = (e: any) => {
62+
if (e.index === '/ds/index') {
63+
useEmitt().emitter.emit('ds-index-click')
64+
}
6165
if (e.index) {
6266
router.push(e.redirect || e.index)
6367
}

frontend/src/views/chat/ChatList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ const handleConfirmPassword = () => {
324324
line-height: 22px;
325325
font-size: 14px;
326326
font-weight: 400;
327+
margin-bottom: 2px;
327328
328329
display: flex;
329330
align-items: center;

frontend/src/views/dashboard/common/ResourceTree.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,6 +573,9 @@ defineExpose({
573573
.custom-tree {
574574
height: calc(100vh - 148px);
575575
padding: 0 8px;
576+
:deep(.ed-tree-node) {
577+
margin-bottom: 2px;
578+
}
576579
}
577580
578581
.custom-tree-node {

frontend/src/views/dashboard/editor/DashboardChatList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ const filteredAndGroupedData = computed(() => {
175175
cursor: pointer;
176176
border-radius: 6px;
177177
line-height: 1em;
178+
margin-bottom: 2px;
178179
179180
display: flex;
180181
align-items: center;

frontend/src/views/ds/Datasource.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import DatasourceListSide from './DatasourceListSide.vue'
1414
import DatasourceForm from './DatasourceForm.vue'
1515
import { datasourceApi } from '@/api/datasource'
1616
import Card from './Card.vue'
17+
import { useEmitt } from '@/utils/useEmitt'
1718
import DelMessageBox from './DelMessageBox.vue'
1819
import { dsTypeWithImg } from './js/ds-type'
1920
import { useI18n } from 'vue-i18n'
@@ -234,6 +235,11 @@ const dataTableDetail = (ele: any) => {
234235
const back = () => {
235236
currentDataTable.value = null
236237
}
238+
239+
useEmitt({
240+
name: 'ds-index-click',
241+
callback: back,
242+
})
237243
</script>
238244

239245
<template>

0 commit comments

Comments
 (0)