Skip to content

Commit

Permalink
chore: 🔨 去掉 tslint 插件
Browse files Browse the repository at this point in the history
  • Loading branch information
Halsey committed Jun 13, 2022
1 parent 117832c commit 8537643
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"vue.volar",
"hollowtree.vue-snippets",
"vue.vscode-typescript-vue-plugin",
"ms-vscode.vscode-typescript-tslint-plugin",
"stylelint.vscode-stylelint",
"dbaeumer.vscode-eslint",
"editorconfig.editorconfig",
Expand Down
2 changes: 1 addition & 1 deletion src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RequestHttp {
(config: AxiosRequestConfig) => {
// * 将当前请求添加到 pending 中
axiosCanceler.addPending(config);
// * 如果当前请求不需要显示 loading在api服务中通过指定的第三个参数 { headers: { noLoading: true } }来控制不显示loading,参见loginApi
// * 如果当前请求不需要显示 loading,在api服务中通过指定的第三个参数: { headers: { noLoading: true } }来控制不显示loading,参见loginApi
config.headers!.noLoading || showFullScreenLoading();
const token: string = globalStore.token;
return { ...config, headers: { "x-access-token": token } };
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ export const HOME_URL: string = "/home/index";
export const TABS_BLACK_LIST: string[] = ["/403", "/404", "/500", "/layout", "/login", "/dataScreen"];

// * 高德地图key
export const MAP_KEY: string = "20f12aae660c04de86f993d3eff590a0";
export const MAP_KEY: string = "";
1 change: 0 additions & 1 deletion src/config/serviceLoading.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const startLoading = () => {
});
};
const endLoading = () => {
// 使用Element loading-close 方法
loadingInstance.close();
};

Expand Down

0 comments on commit 8537643

Please sign in to comment.