Use uuid for signup component

This commit is contained in:
Sam Carlton 2022-04-29 13:41:23 -05:00
parent 6760425893
commit a2f40b7aee

View file

@ -61,6 +61,8 @@
import axios from 'axios' import axios from 'axios'
import { v4 as uuid } from 'uuid'
export default { export default {
props: { props: {
// appName: { // appName: {
@ -78,6 +80,10 @@ export default {
inputClassGroups: { inputClassGroups: {
type: Object, type: Object,
default: () => {} default: () => {}
},
uuid: {
type: String,
default: uuid()
} }
}, },
data: function () { data: function () {
@ -90,7 +96,7 @@ export default {
}, },
computed: { computed: {
inputId () { inputId () {
return `all-updates-subscribe-${this._uid}` return `all-updates-subscribe-${ this.uuid }`
}, },
inputClasslist () { inputClasslist () {
const defaultClassGroups = { const defaultClassGroups = {