fix: tighten entry module rbac flows

This commit is contained in:
wren
2026-04-29 22:25:06 +08:00
parent b544b1a795
commit 55e2c6993f
5 changed files with 152 additions and 32 deletions
+2 -2
View File
@@ -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会自动转换
};