Commit b248f8ae by chunhong.mu

chore: add architecture document

parent f088983f
......@@ -11,11 +11,10 @@ build/
# Environment files
.env
.env.*
.env.*.local
!.env.example
# IDE
.vscode/
.idea/
*.swp
*.swo
......
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "dbaeumer.vscode-eslint",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"[vue]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[typescript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[javascript]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[json]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
},
"[markdown]": {
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
}
}
\ No newline at end of file
......@@ -90,6 +90,7 @@ export default antfu(
'**/package-lock.json',
'**/pnpm-lock.yaml',
'**/yarn.lock',
'ARCHITECTURE.md',
],
},
)
APP_ENV=dev
NODE_ENV=development
APP_ENV=production
NODE_ENV=production
APP_ENV=staging
NODE_ENV=production
APP_ENV=test
NODE_ENV=production
import axios from 'axios'
const request = axios.create({
baseURL: import.meta.env.VITE_API_BASE_URL,
timeout: 10000,
})
request.interceptors.request.use(
(config) =>
{
return config
},
(error) =>
{
return Promise.reject(error)
},
)
request.interceptors.response.use(
(response) =>
{
return response.data
},
(error) =>
{
return Promise.reject(error)
},
)
export { request }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment