公用文件修改
This commit is contained in:
+2
-2
@@ -181,7 +181,7 @@ export function generateSecurePassword(passwordLength:number) {
|
|||||||
|
|
||||||
// 随机选择三种字符类型(保证至少三类)
|
// 随机选择三种字符类型(保证至少三类)
|
||||||
const requiredTypes = shuffle(Object.keys(charSets)).slice(0, 3);
|
const requiredTypes = shuffle(Object.keys(charSets)).slice(0, 3);
|
||||||
|
|
||||||
// 生成必选字符(每类至少1个)
|
// 生成必选字符(每类至少1个)
|
||||||
let password = requiredTypes
|
let password = requiredTypes
|
||||||
.map((type:any) => getRandomChar(charSets[type]))
|
.map((type:any) => getRandomChar(charSets[type]))
|
||||||
@@ -269,4 +269,4 @@ export const tagBgColor = (color: string) => {
|
|||||||
// 边框颜色
|
// 边框颜色
|
||||||
export const tagBorderColor = (color: string) => {
|
export const tagBorderColor = (color: string) => {
|
||||||
return getColorWithOpacity((color || '#333'), 0.3);
|
return getColorWithOpacity((color || '#333'), 0.3);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user