This commit is contained in:
aaron 2025-02-19 15:24:31 +08:00
parent 639da77878
commit 72a41b6012

View File

@ -436,9 +436,9 @@ export default defineComponent({
// //
const generatePassword = () => { const generatePassword = () => {
const chars = '0123456789abcdefghijklmnopqrstuvwxyz' const chars = '1234567890'
let password = '' let password = ''
for (let i = 0; i < 8; i++) { for (let i = 0; i < 6; i++) {
password += chars.charAt(Math.floor(Math.random() * chars.length)) password += chars.charAt(Math.floor(Math.random() * chars.length))
} }
return password return password