Skip to content

Commit

Permalink
fix: 屏蔽上传报错提示
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft authored and jianbing.chen committed Dec 18, 2024
1 parent 3abc448 commit 64a76ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/editor/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const createPageData = (params: CreatePageParams) => {

// 图片上传
export const uploadImg = (params: any) => {
return request.post('/upload/files', params, { showLoading: false });
return request.post('/upload/files', params, { showLoading: false, showError: false });
};

// 保存页面数据
Expand Down
2 changes: 1 addition & 1 deletion packages/editor/src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ instance.interceptors.response.use(
}, 1500);
return Promise.reject(res.message);
} else if (res.code != 0) {
message.error(res.message);
response.config.showError === false ? null : message.error(res.message);
return Promise.reject(res.message);
}
return res;
Expand Down

0 comments on commit 64a76ba

Please sign in to comment.