左侧菜单高亮和展开优化

This commit is contained in:
none
2023-03-09 17:56:33 +08:00
parent a7c8809d12
commit c5bd279d38
4 changed files with 46 additions and 35 deletions

View File

@@ -76,5 +76,14 @@ export function parseVideo(file: File): Promise<VideoParseInfo> {
}
export function getHost() {
return window.location.protocol + "//" + window.location.host+"/";
return window.location.protocol + "//" + window.location.host + "/";
}
export function inStrArray(array: string[], value: string): boolean {
for (let i = 0; i < array.length; i++) {
if (array[i] === value) {
return true;
}
}
return false;
}