style: 统一代码格式和类型定义,测试eslint --fix, 还是有报错

This commit is contained in:
feige996
2025-06-21 16:56:24 +08:00
parent 9cf0c212bf
commit 227f19a93c
40 changed files with 396 additions and 367 deletions

6
src/typings.d.ts vendored
View File

@@ -1,14 +1,14 @@
// 全局要用的类型放到这里
declare global {
type IResData<T> = {
interface IResData<T> {
code: number
msg: string
data: T
}
// uni.uploadFile文件上传参数
type IUniUploadFileOptions = {
interface IUniUploadFileOptions {
file?: File
files?: UniApp.UploadFileOptionFiles[]
filePath?: string
@@ -16,7 +16,7 @@ declare global {
formData?: any
}
type IUserInfo = {
interface IUserInfo {
nickname?: string
avatar?: string
/** 微信的 openid非微信没有这个字段 */