Skip to content

Commit b53300f

Browse files
committed
fix(block-api): remove the slash '/' after the url.
1 parent 4bd9faa commit b53300f

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)