fix(#4953): use beforeMount to generate unique component id (#4954)

This commit is contained in:
Alexander 2024-01-16 14:28:03 +03:00 committed by GitHub
parent 23360e7654
commit e8b5b8f3e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 43 additions and 28 deletions

View file

@ -276,9 +276,10 @@ export default {
this.destroyStyle();
this.destroyMedia();
},
mounted() {
beforeMount() {
this.id = this.id || UniqueComponentId();
},
mounted() {
if (this.responsive) {
this.createStyle();
this.initMedia();