update
This commit is contained in:
parent
639da77878
commit
72a41b6012
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user