Skip to content

Commit 7fa87f5

Browse files
committed
perf(projects): perf code
1 parent b235ef3 commit 7fa87f5

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

.vscode/extensions.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,23 @@
11
{
22
"recommendations": [
3+
"afzalsayed96.icones",
4+
"antfu.iconify",
35
"antfu.unocss",
46
"dbaeumer.vscode-eslint",
57
"editorconfig.editorconfig",
68
"esbenp.prettier-vscode",
7-
"formulahendry.auto-complete-tag",
89
"formulahendry.auto-close-tag",
10+
"formulahendry.auto-complete-tag",
911
"formulahendry.auto-rename-tag",
10-
"kisstkondoros.vscode-gutter-preview",
11-
"mariusalchimavicius.json-to-ts",
12+
"lokalise.i18n-ally",
1213
"mhutchie.git-graph",
14+
"mikestead.dotenv",
15+
"naumovs.color-highlight",
16+
"pkief.material-icon-theme",
1317
"sdras.vue-vscode-snippets",
1418
"vue.volar",
15-
"vue.vscode-typescript-vue-plugin"
19+
"vue.vscode-typescript-vue-plugin",
20+
"whtouche.vscode-js-console-utils",
21+
"zhuangtongfa.material-theme"
1622
]
1723
}

packages/axios/src/type.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export interface RequestOption<ResponseData = any> {
3030
*
3131
* @param response Axios response
3232
* @param instance Axios instance
33-
* @returns
3433
*/
3534
onBackendFail: (
3635
response: AxiosResponse<ResponseData>,

src/service/request/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const request = createFlatRequest<App.Service.Response>(
3131
},
3232
async onBackendFail(_response) {
3333
// when the backend response code is not "0000", it means the request is fail
34-
// for example: the token is expired, refetch token and retry request
34+
// for example: the token is expired, refresh token and retry request
3535
},
3636
transformBackendResponse(response) {
3737
return response.data.data;
@@ -73,7 +73,7 @@ export const demoRequest = createRequest<App.Service.DemoResponse>(
7373
},
7474
async onBackendFail(_response) {
7575
// when the backend response code is not "200", it means the request is fail
76-
// for example: the token is expired, refetch token and retry request
76+
// for example: the token is expired, refresh token and retry request
7777
},
7878
transformBackendResponse(response) {
7979
return response.data.result;

0 commit comments

Comments
 (0)