Skip to content

Commit

Permalink
fix: 屏蔽上传报错提示
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Oct 12, 2024
1 parent 16aa6de commit 6469f54
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,18 @@ git clone https://github.com/JackySoft/marsview.git

项目说明

| | |
| ------------------ | -------------- |
| packges | 前端项目 |
| packges/admin | 项目访问端 |
| packges/editor | 编辑器入口 |
| packages/materials | 组件物料 |
| packages/docs | 低代码使用文档 |
| backend | 后端服务 |
| backend/java | JAVA 版本 |
| backend/koa | KOA 版本 |
| 目录 | 说明 |
| ------------------ | -------------------------- |
| packges | 前端项目,包括 4 个子服务 |
| packges/admin | 项目访问端 |
| packges/editor | 编辑器端 |
| packages/materials | 组件物料 ,仅供 admin 使用 |
| packages/docs | 低代码使用文档 |
| backend | 后端服务,包括 2 个版本 |
| backend/java | JAVA 版本 |
| backend/koa | KOA 版本 |
| backend/koa/config | 项目配置文件 |
| backend/sql | 数据库脚本 |

### 快速开始

Expand Down
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 6469f54

Please sign in to comment.