Add new components for login and comment functionality

This commit is contained in:
wangqiao
2025-08-17 20:15:33 +08:00
parent 99df1d1f81
commit 07b4d3de99
37 changed files with 4744 additions and 263 deletions

View File

@ -96,3 +96,13 @@ export const downloadFile = (url: string, filename: string) => {
a.click()
document.body.removeChild(a)
}
/**
* 判断传入的参数是否为数组
* @param arr - 需要判断的参数
* @returns {boolean} 如果参数是数组则返回true否则返回false
*/
export const isArray = (arr: any) => { // 定义一个名为isArray的导出函数接收任意类型的参数arr
return Array.isArray(arr)
}