| | |
| | | node.setId(product.getId()); |
| | | node.setName(product.getProductName()); |
| | | node.setParentId(product.getParentId()); |
| | | node.setWeight(product.getParentId()); |
| | | //node.setWeight(product.getParentId()); |
| | | // 扩展属性 |
| | | Map<String, Object> extra = new HashMap<>(); |
| | | // extra.put("picPath", category.getPicPath()); |
| | |
| | | |
| | | // 适配 vue3 |
| | | Map<String, Object> meta = new HashMap<>(); |
| | | meta.put("title", product.getProductName()); |
| | | meta.put("icon", product.getPrice()); |
| | | /* meta.put("title", product.getProductName()); |
| | | meta.put("icon", product.getPrice());*/ |
| | | |
| | | extra.put("meta", meta); |
| | | node.setExtra(extra); |
| | | //extra.put("meta", meta); |
| | | //node.setExtra(extra); |
| | | return node; |
| | | }; |
| | | } |