|
|
@@ -48,8 +48,14 @@ public class PageService {
|
|
|
tempMap.put("visible", visible);
|
|
|
switch (menuType) {
|
|
|
case "menu": // 菜单
|
|
|
- tempMap.put("url", (String) map.get("url"));
|
|
|
- tempMap.put("schemaApi", (String) map.get("path"));
|
|
|
+ // 判断,如果是menu,但是value是空的,即path.则表名为目录,且不需要添加url和path
|
|
|
+ String path = (String) map.get("path");
|
|
|
+ if(path == null || path.equals("")) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ tempMap.put("url", (String) map.get("url"));
|
|
|
+ tempMap.put("schemaApi", path);
|
|
|
+ }
|
|
|
break;
|
|
|
case "dir":
|
|
|
break;
|