mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🚨 修复 qodana 报错
This commit is contained in:
@@ -114,7 +114,7 @@ export async function getCacheDir(): Promise<string[] | false> {
|
||||
export function getRandomString(length: number, type: string = "all"): string {
|
||||
const char = "abcdefghijklmnopqrstuvwxyz";
|
||||
const num = "0123456789";
|
||||
let str = "";
|
||||
let str: string;
|
||||
switch (type) {
|
||||
case "all":
|
||||
str = char + char.toUpperCase() + num;
|
||||
|
||||
Reference in New Issue
Block a user