fix setPages: 确保在子节点没有设置url的时候,正确拼接父级路径。#12132
Open
aynakeya wants to merge 2 commits intobaidu:masterfrom
Open
fix setPages: 确保在子节点没有设置url的时候,正确拼接父级路径。#12132aynakeya wants to merge 2 commits intobaidu:masterfrom
aynakeya wants to merge 2 commits intobaidu:masterfrom
Conversation
|
👍 Thanks for this! Please review the labels and make any necessary changes. |
Member
|
你好,之前时故意这么设定的,如果不带上层级,index 可能会冲突 |
Author
你好,我修改了代码,这样还有冲突么。 测试代码 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
修复 setPages 中页面路径生成逻辑,确保在子节点没有设置
url的时候,正确拼接父级路径。Why
当前状态下,如果父节点设置了
url但是字节点没有设置,那么子节点不会使用父节点的url,而会变成page-n/page-n的格式如上的的用户管理会返回
page-1/page-1而不是/dashboard/page-1How
修改
为
Test Script
Details