Skip to content

Commit 0d3ea24

Browse files
committed
feat: support plain text rendering in confirm
1 parent 4467cbe commit 0d3ea24

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

frontend/src/components/Confirm/index.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,16 @@ const handleCancel = () => {
153153
<div class="gui-confirm flex flex-col p-8 rounded-8 shadow">
154154
<div class="font-bold break-all px-4 py-8">{{ t(title) }}</div>
155155
<div
156+
v-if="options.type === 'markdown'"
156157
class="flex-1 overflow-y-auto text-12 leading-relaxed p-6 break-all whitespace-pre-wrap select-text"
157158
v-html="content"
158159
></div>
160+
<div
161+
v-else
162+
class="flex-1 overflow-y-auto text-12 leading-relaxed p-6 break-all whitespace-pre-wrap select-text"
163+
>
164+
{{ content }}
165+
</div>
159166
<div class="form-action gap-4">
160167
<Button v-if="cancel" size="small" @click="handleCancel">
161168
{{ t(options.cancelText || 'common.cancel') }}

0 commit comments

Comments
 (0)