fix(Toast): failed to render message after changing type (#10311)

This commit is contained in:
neverland 2022-02-21 11:51:23 +08:00 committed by GitHub
parent cbe16a3724
commit f2c4590902
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>
);