chore: 更新oxlint配置及依赖版本

- 添加oxlint到VSCode设置
- 在useUpload.ts中移除未使用的import和注释掉accept参数
- 在utils/index.ts中简化getAllPages函数
- 更新package.json中的oxlint版本和lint配置
- 更新pnpm-lock.yaml中的oxlint相关依赖
This commit is contained in:
feige996
2025-06-13 17:00:31 +08:00
parent 02b78976bd
commit 3893aff68f
5 changed files with 91 additions and 23 deletions

View File

@@ -101,14 +101,13 @@ export const getUrlObj = (url: string) => {
*/
export const getAllPages = (key = 'needLogin') => {
// 这里处理主包
const mainPages = [
...pages
.filter((page) => !key || page[key])
.map((page) => ({
...page,
path: `/${page.path}`,
})),
]
const mainPages = pages
.filter((page) => !key || page[key])
.map((page) => ({
...page,
path: `/${page.path}`,
}))
// 这里处理分包
const subPages: any[] = []
subPackages.forEach((subPageObj) => {