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