diff --git a/src/utils/common.ts b/src/utils/common.ts index 97ad5fd..50a7dd9 100644 --- a/src/utils/common.ts +++ b/src/utils/common.ts @@ -181,7 +181,7 @@ export function generateSecurePassword(passwordLength:number) { // 随机选择三种字符类型(保证至少三类) const requiredTypes = shuffle(Object.keys(charSets)).slice(0, 3); - + // 生成必选字符(每类至少1个) let password = requiredTypes .map((type:any) => getRandomChar(charSets[type])) @@ -269,4 +269,4 @@ export const tagBgColor = (color: string) => { // 边框颜色 export const tagBorderColor = (color: string) => { return getColorWithOpacity((color || '#333'), 0.3); -} \ No newline at end of file +}