style(projects): 格式化代码

This commit is contained in:
Soybean
2021-07-20 10:07:35 +08:00
parent 1e393eb9d4
commit d680e7d931
7 changed files with 54 additions and 7 deletions

View File

@ -23,7 +23,7 @@ export const errorDuration = 3000 / 1000;
* 网络请求错误状态处理
* @param error - 错误
*/
export function errorHandler(error: any) {
export function errorHandler(error: any): void {
if (error.response) {
const status = error.response.status as ErrorStatus;
ElMessage.error(ERROR_STATUS[status]);