fix: tighten entry module rbac flows
This commit is contained in:
@@ -218,8 +218,8 @@ export default function EntryModuleNew() {
|
||||
const moduleData = {
|
||||
name: name.trim(),
|
||||
description: description.trim() || undefined,
|
||||
// 创建时 path 为 null,编辑时保持原 path(图片上传接口会自动更新)
|
||||
path: isEditMode ? module?.path : null,
|
||||
// path 字段在后端表示 route_path,这里编辑时必须保留原 route_path,不能误传 logo path。
|
||||
path: isEditMode ? module?.route_path : null,
|
||||
areas: selectedAreas // 字符串数组,API会自动转换
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user