Skip to content
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

fix: 修复代码生成工具中上级菜单回显问题 #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AZCodingAccount
Copy link

问题描述:在使用代码生成工具时点击编辑,切换到上级菜单,可以看到此时显示的是菜单id而非菜单名称,如下图

回显演示新

我如何解决的?

  1. 在页面获取menuOptions后根据menuId对树状选项进行了递归遍历得到menuName,并将menuName设置为树状选择框的初始值。

  2. tree-select组件内部更新值通知genInfoForm组件,再由该组件通知editTable组件,实现了info.parentMenuId的更新

我测试了回显正常切换分类均无bug,测试Gif图如下:

回显问题解决演示

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant