diff --git a/src/utils/uuid.ts b/src/utils/uuid.ts
new file mode 100644
index 0000000000000000000000000000000000000000..548bcf39807853bbc29d768b424dfa4c3f09bd79
--- /dev/null
+++ b/src/utils/uuid.ts
@@ -0,0 +1,28 @@
+const hexList: string[] = [];
+for (let i = 0; i <= 15; i++) {
+ hexList[i] = i.toString(16);
+}
+
+export function buildUUID(): string {
+ let uuid = '';
+ for (let i = 1; i <= 36; i++) {
+ if (i === 9 || i === 14 || i === 19 || i === 24) {
+ uuid += '-';
+ } else if (i === 15) {
+ uuid += 4;
+ } else if (i === 20) {
+ uuid += hexList[(Math.random() * 4) | 8];
+ } else {
+ uuid += hexList[(Math.random() * 16) | 0];
+ }
+ }
+ return uuid.replace(/-/g, '');
+}
+
+let unique = 0;
+export function buildShortUUID(prefix = ''): string {
+ const time = Date.now();
+ const random = Math.floor(Math.random() * 1000000000);
+ unique++;
+ return prefix + '_' + random + unique + String(time);
+}
diff --git a/src/views/system/client/SecretInput.vue b/src/views/system/client/SecretInput.vue
new file mode 100644
index 0000000000000000000000000000000000000000..8714a01b2dad4482e2943491b7fe9b8910a99378
--- /dev/null
+++ b/src/views/system/client/SecretInput.vue
@@ -0,0 +1,41 @@
+
+
+
+ 随机生成
+
+
+
+
+
+
+
diff --git a/src/views/system/client/index.vue b/src/views/system/client/index.vue
index c05dcdcf48b531ce00cc13f38fd7c972ab8d70b8..3a235597fad80d04a0b0b07d48812705f0647be9 100644
--- a/src/views/system/client/index.vue
+++ b/src/views/system/client/index.vue
@@ -89,7 +89,7 @@
-
+
@@ -144,6 +144,7 @@