diff --git a/src/util/util.js b/src/util/util.js
index 54891d0..0ce4521 100644
--- a/src/util/util.js
+++ b/src/util/util.js
@@ -64,6 +64,16 @@ export default {
for (let k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
+ },
+ uniqueid() {
+ let idstr = String.fromCharCode(Math.floor((Math.random() * 25) + 65));
+ do {
+ let ascicode = Math.floor((Math.random() * 42) + 48);
+ if (ascicode < 58 || ascicode > 64) {
+ idstr += String.fromCharCode(ascicode);
+ }
+ } while (idstr.length < 32);
+ return (idstr);
}
}
diff --git a/src/views/CardDetail.vue b/src/views/CardDetail.vue
index bf58c22..cb696e2 100644
--- a/src/views/CardDetail.vue
+++ b/src/views/CardDetail.vue
@@ -36,6 +36,12 @@
{{$t('breed')}}
+