Skip to content

Commit

Permalink
Date.now()getUniqueDomId() (#704)
Browse files Browse the repository at this point in the history
  • Loading branch information
Raruto authored Jan 30, 2025
1 parent c93daec commit 60e5b2c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/FieldImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@
</template>

<script>
import { toRawType } from 'utils/toRawType';

import Field from 'components/Field.vue';
import Teleport from 'vue2-teleport';
import Teleport from 'vue2-teleport';
import Field from 'components/Field.vue';
import { toRawType } from 'utils/toRawType';
import { getUniqueDomId } from 'utils/getUniqueDomId';

export default {

Expand All @@ -83,7 +83,7 @@ export default {
props: ['state'],
data() {
return {
id: Date.now(),
id: getUniqueDomId(),
active: null,
value: undefined !== this.state.value.mime_type ? this.state.value.value : this.state.value,
}
Expand Down

0 comments on commit 60e5b2c

Please sign in to comment.