Skip to content

Commit 4e93aa6

Browse files
authored
Update http.ts (opentiny#1511)
http的发送路径错误,添加了多余的/,导致404
1 parent 9ba6c82 commit 4e93aa6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • packages/plugins/block/src/js

packages/plugins/block/src/js/http.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const requestUpdateBlock = (blockId, params, config = {}) =>
2626

2727
// 区块管理 -- 发布区块
2828
export const requestDeployBlock = (params) =>
29-
getMetaApi(META_SERVICE.Http).post('/material-center/api/block/deploy/', params)
29+
getMetaApi(META_SERVICE.Http).post('/material-center/api/block/deploy', params)
3030

3131
// 区块管理 -- 根据关键字搜索区块
3232
export const requestSearchBlock = (searchKey) =>
@@ -38,7 +38,7 @@ export const fetchBackupList = (blockId) =>
3838

3939
// 区块管理 -- 新建区块
4040
export const requestCreateBlock = (params) =>
41-
getMetaApi(META_SERVICE.Http).post('/material-center/api/block/create/', params)
41+
getMetaApi(META_SERVICE.Http).post('/material-center/api/block/create', params)
4242

4343
// 初始化区块
4444
export const requestInitBlocks = (params) => getMetaApi(META_SERVICE.Http).post('/generate/api/initBlocks', params)

0 commit comments

Comments
 (0)