Skip to content

Commit 0ddd745

Browse files
committed
refactor: 优化前端显示
1 parent cfc77b5 commit 0ddd745

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

ui/src/views/application-overview/component/XPackDisplaySettingDialog.vue

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,13 @@
113113
</div>
114114
<div style="position: absolute; bottom: 0">
115115
<img src="@/assets/display-bg1.png" alt="" class="w-full" />
116+
<div
117+
class="chat-width"
118+
v-if="xpackForm.disclaimer"
119+
style="align-items: center; text-align: center"
120+
>
121+
{{ xpackForm.disclaimer_value }}
122+
</div>
116123
</div>
117124
</div>
118125
</div>
@@ -304,8 +311,8 @@ const defaultSetting = {
304311
header_font_color: '#1f2329'
305312
},
306313
float_location: {
307-
x: { type: '', value: 0 },
308-
y: { type: '', value: 0 }
314+
y: { type: 'bottom', value: 30 },
315+
x: { type: 'right', value: 0 }
309316
}
310317
}
311318
@@ -329,8 +336,8 @@ const xpackForm = ref<any>({
329336
header_font_color: '#1f2329'
330337
},
331338
float_location: {
332-
x: { type: 'bottom', value: 30 },
333-
y: { type: 'right', value: 0 }
339+
y: { type: 'bottom', value: 30 },
340+
x: { type: 'right', value: 0 }
334341
}
335342
})
336343
@@ -355,9 +362,13 @@ function resetForm() {
355362
form.value = {
356363
...defaultSetting
357364
}
365+
xpackForm.value = {
366+
...defaultSetting
367+
}
358368
imgUrl.value = {
359369
avatar: '',
360-
float_icon: ''
370+
float_icon: '',
371+
user_avatar: ''
361372
}
362373
}
363374

0 commit comments

Comments
 (0)