mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Use uuid for signup component
This commit is contained in:
parent
6760425893
commit
a2f40b7aee
1 changed files with 7 additions and 1 deletions
|
|
@ -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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue