Skip to content

Commit c69f24a

Browse files
committed
feat: check datasource status before creat chat
1 parent fc9ed60 commit c69f24a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

frontend/src/views/ds/Card.vue

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@ import delIcon from '@/assets/svg/icon_delete.svg'
33
import icon_more_outlined from '@/assets/svg/icon_more_outlined.svg'
44
import icon_form_outlined from '@/assets/svg/icon_form_outlined.svg'
55
import icon_chat_outlined from '@/assets/svg/icon_chat_outlined.svg'
6-
import { ref, unref, computed } from 'vue'
7-
import { ClickOutside as vClickOutside, ElMessage } from 'element-plus-secondary'
6+
import { computed, ref, unref } from 'vue'
7+
import { ClickOutside as vClickOutside } from 'element-plus-secondary'
88
import { dsTypeWithImg } from './js/ds-type'
99
import edit from '@/assets/svg/icon_edit_outlined.svg'
1010
import { datasourceApi } from '@/api/datasource.ts'
11-
import { encrypted } from '@/views/ds/js/aes.ts'
12-
import { useI18n } from 'vue-i18n'
13-
const { t } = useI18n()
1411
1512
const props = withDefaults(
1613
defineProps<{
@@ -133,6 +130,7 @@ const onClickOutside = () => {
133130
padding: 16px;
134131
border-radius: 12px;
135132
cursor: pointer;
133+
136134
&:hover {
137135
box-shadow: 0px 6px 24px 0px #1f232914;
138136
}
@@ -145,12 +143,14 @@ const onClickOutside = () => {
145143
.info {
146144
margin-left: 12px;
147145
max-width: calc(100% - 50px);
146+
148147
.name {
149148
font-weight: 500;
150149
font-size: 16px;
151150
line-height: 24px;
152151
max-width: 100%;
153152
}
153+
154154
.type {
155155
font-weight: 400;
156156
font-size: 12px;
@@ -228,6 +228,7 @@ const onClickOutside = () => {
228228
}
229229
}
230230
}
231+
231232
&:hover {
232233
.methods {
233234
display: flex;
@@ -244,8 +245,10 @@ const onClickOutside = () => {
244245
width: 120px !important;
245246
min-width: 120px !important;
246247
padding: 0;
248+
247249
.content {
248250
position: relative;
251+
249252
&::after {
250253
position: absolute;
251254
content: '';
@@ -255,17 +258,20 @@ const onClickOutside = () => {
255258
height: 1px;
256259
background: #dee0e3;
257260
}
261+
258262
.item {
259263
position: relative;
260264
padding-left: 12px;
261265
height: 40px;
262266
display: flex;
263267
align-items: center;
264268
cursor: pointer;
269+
265270
.ed-icon {
266271
margin-right: 8px;
267272
color: #646a73;
268273
}
274+
269275
&:hover {
270276
&::after {
271277
display: block;

0 commit comments

Comments
 (0)