mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Toast): failed to render message after changing type (#10311)
This commit is contained in:
parent
cbe16a3724
commit
f2c4590902
@ -120,7 +120,7 @@ export default defineComponent({
|
||||
|
||||
if (isDef(message) && message !== '') {
|
||||
return type === 'html' ? (
|
||||
<div class={bem('text')} innerHTML={String(message)} />
|
||||
<div key={0} class={bem('text')} innerHTML={String(message)} />
|
||||
) : (
|
||||
<div class={bem('text')}>{message}</div>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user