Skip to content

🐛 [Bug]: Page cannot be saved if there is no pageId on the url. #1282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
chilingling opened this issue Apr 2, 2025 · 2 comments
Open
Labels
bug Something isn't working

Comments

@chilingling
Copy link
Member

Environment

chrome

Version

18

Version

2.3+

Link to minimal reproduction

empty

Step to reproduce

// url 没有 pageid 或 blockid,到页面首页或第一页
const pageInfo = appSchemaState.pageTree.find((page) => page?.meta?.isHome) ||
appSchemaState.pageTree.find(
(page) => page.componentName === COMPONENT_NAME.Page && page?.meta?.group !== 'publicPages'
) || {
componentName: COMPONENT_NAME.Page
}
initPage(toRaw(pageInfo))

What is expected

页面能正常保存

What is actually happening

页面无法保存

What is your project name

TinyEngine

Any additional comments (optional)

No response

@chilingling chilingling added the bug Something isn't working label Apr 3, 2025
@chilingling
Copy link
Member Author

@xuanlid

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@美六

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants