mirror of
https://github.com/PlayEdu/backend
synced 2026-03-10 03:00:36 +08:00
左侧菜单高亮和展开优化
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user