Skip to content

Commit 87b319d

Browse files
committed
fix[Tinymce]: uuid bug
1 parent 4c49259 commit 87b319d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/components/Tinymce/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ export default {
1818
props: {
1919
id: {
2020
type: String,
21-
default: 'vue-tinymce-' + +new Date()
21+
default: function() {
22+
return 'vue-tinymce-' + +new Date() + ((Math.random() * 1000).toFixed(0) + '')
23+
}
2224
},
2325
value: {
2426
type: String,

0 commit comments

Comments
 (0)