Skip to content

Commit d6b6e0c

Browse files
fix(block-api): remove the slash '/' after the url (#1515)
1 parent 6b25527 commit d6b6e0c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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)

packages/plugins/materials/src/composable/useResource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ interface PageInfo {
8080

8181
const initPage = (pageInfo: PageInfo) => {
8282
try {
83-
if (pageInfo?.occupier) {
83+
if (pageInfo?.occupier !== undefined) {
8484
useLayout().layoutState.pageStatus = getCanvasStatus(pageInfo.occupier)
8585
goPage(pageInfo.id)
8686
} else {

0 commit comments

Comments
 (0)