mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2025-12-30 09:42:25 +00:00
fix: 菜单管理 新增没有加载下拉选择api
This commit is contained in:
@@ -10,6 +10,10 @@
|
|||||||
|
|
||||||
- 修改流程变量
|
- 修改流程变量
|
||||||
|
|
||||||
|
**BUG FIX**
|
||||||
|
|
||||||
|
- 菜单管理 新增没有加载下拉选择api
|
||||||
|
|
||||||
# 1.5.1
|
# 1.5.1
|
||||||
|
|
||||||
对应后端版本 单体/微服务: 5.5.0/2.5.0
|
对应后端版本 单体/微服务: 5.5.0/2.5.0
|
||||||
|
|||||||
@@ -115,9 +115,14 @@ const [BasicDrawer, drawerApi] = useVbenDrawer({
|
|||||||
|
|
||||||
if (id) {
|
if (id) {
|
||||||
await formApi.setFieldValue('parentId', id);
|
await formApi.setFieldValue('parentId', id);
|
||||||
if (update) {
|
// 创建元组(不是数组 元素位置固定)
|
||||||
// 没有依赖关系 同时加载
|
const promise = [
|
||||||
const [record] = await Promise.all([menuInfo(id), setupMenuSelect()]);
|
update ? menuInfo(id) : null,
|
||||||
|
setupMenuSelect(),
|
||||||
|
] as const;
|
||||||
|
// 并行获取菜单树选择和菜单信息
|
||||||
|
const [record] = await Promise.all(promise);
|
||||||
|
if (record) {
|
||||||
await formApi.setValues(record);
|
await formApi.setValues(record);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user