Skip to content

Commit d1448f6

Browse files
committed
fix(Embedded Management): The floating window entry chart color is inconsistent
1 parent e60eb5f commit d1448f6

File tree

4 files changed

+14
-9
lines changed

4 files changed

+14
-9
lines changed

frontend/src/views/chat/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ onMounted(() => {
11951195
font-size: 14px;
11961196
line-height: 24px;
11971197
color: #646a73;
1198-
max-width: 100%;
1198+
max-width: 88%;
11991199
word-break: break-all;
12001200
padding: 0 20px;
12011201
}

frontend/src/views/embedded/AssistantPreview.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ const pageLogo = computed(() => {
120120
121121
.ed-icon:not(.logo) {
122122
cursor: pointer;
123+
color: #1f2329;
123124
124125
&::after {
125126
content: '';
@@ -162,6 +163,9 @@ const pageLogo = computed(() => {
162163
font-size: 24px;
163164
line-height: 32px;
164165
margin: 16px 0;
166+
max-width: 100%;
167+
word-break: break-all;
168+
padding: 0 20px;
165169
}
166170
167171
.i-can {
@@ -172,6 +176,9 @@ const pageLogo = computed(() => {
172176
font-size: 14px;
173177
line-height: 24px;
174178
color: #646a73;
179+
max-width: 88%;
180+
word-break: break-all;
181+
padding: 0 20px;
175182
}
176183
}
177184
.content {

frontend/src/views/embedded/index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ onBeforeUnmount(() => {
239239
240240
.ed-icon:not(.logo) {
241241
cursor: pointer;
242+
color: #1F2329;
242243
243244
&::after {
244245
content: '';

frontend/src/views/system/embedded/iframe.vue

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ const dsListOptions = ref<any[]>([])
9090
9191
const embeddedListWithSearch = computed(() => {
9292
if (!keywords.value) return embeddedList.value
93-
return embeddedList.value.filter((ele) =>
93+
return embeddedList.value.filter((ele: any) =>
9494
ele.name.toLowerCase().includes(keywords.value.toLowerCase())
9595
)
9696
})
@@ -126,14 +126,11 @@ const handleAddEmbedded = (val: any) => {
126126
const wsChanged = (val: any) => {
127127
dsForm.public_list = []
128128
dsForm.oid = val
129-
getDsList(true)
129+
getDsList()
130130
}
131-
const getDsList = (change: boolean = false) => {
131+
const getDsList = () => {
132132
dsApi(dsForm.oid).then((res: any) => {
133133
dsListOptions.value = res || []
134-
if (change || !currentEmbedded.id) {
135-
dsForm.public_list = dsListOptions.value.map((ele: any) => ele.id)
136-
}
137134
})
138135
}
139136
const handleBaseEmbedded = (row: any) => {
@@ -142,7 +139,7 @@ const handleBaseEmbedded = (row: any) => {
142139
if (row) {
143140
Object.assign(dsForm, JSON.parse(row.configuration))
144141
}
145-
getDsList(false)
142+
getDsList()
146143
ruleConfigvVisible.value = true
147144
dialogTitle.value = row?.id
148145
? t('embedded.edit_basic_applications')
@@ -519,7 +516,7 @@ const saveHandler = () => {
519516
type: 'success',
520517
message: t('common.save_success'),
521518
})
522-
519+
urlFormRef.value.validate('certificate')
523520
certificateBeforeClose()
524521
}
525522
})

0 commit comments

Comments
 (0)