添加认证服务API模块,包括登录、token刷新和验证功能 在axios拦截器中实现token自动刷新机制,处理401错误 更新tsconfig配置以支持ES2020特性 重构API导入路径以使用新的auth模块结构
32 lines
734 B
JSON
32 lines
734 B
JSON
{
|
|
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
"compilerOptions": {
|
|
"target": "ES2020",
|
|
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
"declaration": true,
|
|
"emitDeclarationOnly": false,
|
|
"declarationDir": "./dist/types",
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"types": [
|
|
"vite/client"
|
|
],
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"@/*": ["src/*"]
|
|
},
|
|
/* Linting */
|
|
"strict": true,
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"erasableSyntaxOnly": true,
|
|
"noFallthroughCasesInSwitch": true,
|
|
"noUncheckedSideEffectImports": true
|
|
},
|
|
"include": [
|
|
"src/**/*.ts",
|
|
"src/**/*.d.ts",
|
|
"src/**/*.tsx",
|
|
"src/**/*.vue"
|
|
]
|
|
}
|