ant design 的 tree 如何作为角色中的权限选择之一

news2024/11/15 12:38:55

在这里插入图片描述
在这里插入图片描述
这种功能如何弄呢?

编辑的时候要让权限能选中哦。

<ProForm.Item name="permissions" label={intl.formatMessage({ id: 'permission_choose' })}>
          <Spin spinning={loading}>
            <Tree
              checkable
              onExpand={onExpand}
              expandedKeys={expandedKeys}
              autoExpandParent={autoExpandParent}
              onCheck={onCheck}
              checkedKeys={checkedKeys}
              onSelect={onSelect}
              selectedKeys={selectedKeys}
              treeData={permissionGroups} // Use filtered top-level groups
              fieldNames={{ title: 'name', key: '_id', children: 'children' }}
            />
          </Spin>
        </ProForm.Item>

首先这个地方,你要使用 tree 这个组件。

主要是这个 permissionGroups 的数据从哪里来

给看一下响应出来的数据:

在这里插入图片描述
这是具体数据:

{
    "success": true,
    "data": [
        {
            "_id": "66b1b54ef8871ea52a7e3de9",
            "name": "认证管理",
            "createdAt": "2024-08-06T05:31:58.495Z",
            "updatedAt": "2024-08-10T02:24:31.070Z",
            "__v": 0,
            "children": [
                {
                    "_id": "66b1b00bb5d937a0aef34034",
                    "name": "权限",
                    "createdAt": "2024-08-06T05:09:31.292Z",
                    "updatedAt": "2024-08-10T02:24:41.759Z",
                    "__v": 0,
                    "parent": {
                        "_id": "66b1b54ef8871ea52a7e3de9",
                        "name": "认证管理",
                        "createdAt": "2024-08-06T05:31:58.495Z",
                        "updatedAt": "2024-08-10T02:24:31.070Z",
                        "__v": 0
                    },
                    "children": [
                        {
                            "_id": "66adee8cd22d6d5b1ce00780",
                            "name": "更新权限",
                            "path": "/permissions/:id",
                            "action": "PUT",
                            "permissionGroup": "66b1b00bb5d937a0aef34034",
                            "createdAt": "2024-08-03T08:47:08.777Z",
                            "updatedAt": "2024-08-10T02:38:15.837Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b1a12b0e10340bd8bbeba0",
                            "name": "删除权限",
                            "path": "/permissions",
                            "action": "DELETE",
                            "createdAt": "2024-08-06T04:06:03.752Z",
                            "updatedAt": "2024-08-10T02:31:07.287Z",
                            "__v": 0,
                            "permissionGroup": "66b1b00bb5d937a0aef34034"
                        },
                        {
                            "_id": "66b1c55141364c27c464f858",
                            "name": "查看权限",
                            "path": "/permissions",
                            "action": "GET",
                            "permissionGroup": "66b1b00bb5d937a0aef34034",
                            "createdAt": "2024-08-06T06:40:17.991Z",
                            "updatedAt": "2024-08-10T08:03:27.245Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6cf51aa92a3526285b14d",
                            "name": "添加权限",
                            "path": "/permissions",
                            "action": "POST",
                            "createdAt": "2024-08-10T02:24:17.940Z",
                            "updatedAt": "2024-08-10T02:30:22.189Z",
                            "__v": 0,
                            "permissionGroup": "66b1b00bb5d937a0aef34034"
                        }
                    ]
                },
                {
                    "_id": "66b6d2c9b9ad87dfa985f34f",
                    "name": "用户",
                    "parent": {
                        "_id": "66b1b54ef8871ea52a7e3de9",
                        "name": "认证管理",
                        "createdAt": "2024-08-06T05:31:58.495Z",
                        "updatedAt": "2024-08-10T02:24:31.070Z",
                        "__v": 0
                    },
                    "createdAt": "2024-08-10T02:39:05.563Z",
                    "updatedAt": "2024-08-10T02:39:05.563Z",
                    "__v": 0,
                    "children": [
                        {
                            "_id": "66b6d339b9ad87dfa985f3dd",
                            "name": "添加用户",
                            "path": "/users",
                            "action": "POST",
                            "permissionGroup": "66b6d2c9b9ad87dfa985f34f",
                            "createdAt": "2024-08-10T02:40:57.583Z",
                            "updatedAt": "2024-08-10T02:41:30.112Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d352b9ad87dfa985f3f0",
                            "name": "查看用户",
                            "path": "/users",
                            "action": "GET",
                            "permissionGroup": "66b6d2c9b9ad87dfa985f34f",
                            "createdAt": "2024-08-10T02:41:22.895Z",
                            "updatedAt": "2024-08-10T08:03:22.477Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d368b9ad87dfa985f416",
                            "name": "删除用户",
                            "path": "/users",
                            "action": "DELETE",
                            "permissionGroup": "66b6d2c9b9ad87dfa985f34f",
                            "createdAt": "2024-08-10T02:41:44.912Z",
                            "updatedAt": "2024-08-10T02:41:44.912Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d37bb9ad87dfa985f429",
                            "name": "更新用户",
                            "path": "/users/:id",
                            "action": "PUT",
                            "permissionGroup": "66b6d2c9b9ad87dfa985f34f",
                            "createdAt": "2024-08-10T02:42:03.242Z",
                            "updatedAt": "2024-08-10T02:45:40.000Z",
                            "__v": 0
                        }
                    ]
                },
                {
                    "_id": "66b6d2ddb9ad87dfa985f362",
                    "name": "菜单",
                    "parent": {
                        "_id": "66b1b54ef8871ea52a7e3de9",
                        "name": "认证管理",
                        "createdAt": "2024-08-06T05:31:58.495Z",
                        "updatedAt": "2024-08-10T02:24:31.070Z",
                        "__v": 0
                    },
                    "createdAt": "2024-08-10T02:39:25.628Z",
                    "updatedAt": "2024-08-10T02:39:25.628Z",
                    "__v": 0,
                    "children": [
                        {
                            "_id": "66b6d440b9ad87dfa985f488",
                            "name": "添加菜单",
                            "path": "/menus",
                            "action": "POST",
                            "permissionGroup": "66b6d2ddb9ad87dfa985f362",
                            "createdAt": "2024-08-10T02:45:20.021Z",
                            "updatedAt": "2024-08-10T02:45:20.021Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d46cb9ad87dfa985f4c1",
                            "name": "删除菜单",
                            "path": "/menus",
                            "action": "DELETE",
                            "permissionGroup": "66b6d2ddb9ad87dfa985f362",
                            "createdAt": "2024-08-10T02:46:04.896Z",
                            "updatedAt": "2024-08-10T02:46:04.896Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d47db9ad87dfa985f4d4",
                            "name": "更新菜单",
                            "path": "/menus/:id",
                            "action": "PUT",
                            "permissionGroup": "66b6d2ddb9ad87dfa985f362",
                            "createdAt": "2024-08-10T02:46:21.612Z",
                            "updatedAt": "2024-08-10T02:46:52.140Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d48bb9ad87dfa985f4e7",
                            "name": "查看菜单",
                            "path": "/menus",
                            "action": "GET",
                            "permissionGroup": "66b6d2ddb9ad87dfa985f362",
                            "createdAt": "2024-08-10T02:46:35.896Z",
                            "updatedAt": "2024-08-10T08:03:13.698Z",
                            "__v": 0
                        }
                    ]
                },
                {
                    "_id": "66b6d2e9b9ad87dfa985f377",
                    "name": "角色",
                    "parent": {
                        "_id": "66b1b54ef8871ea52a7e3de9",
                        "name": "认证管理",
                        "createdAt": "2024-08-06T05:31:58.495Z",
                        "updatedAt": "2024-08-10T02:24:31.070Z",
                        "__v": 0
                    },
                    "createdAt": "2024-08-10T02:39:37.339Z",
                    "updatedAt": "2024-08-10T02:39:37.339Z",
                    "__v": 0,
                    "children": [
                        {
                            "_id": "66b6d39eb9ad87dfa985f43c",
                            "name": "添加角色",
                            "path": "/roles",
                            "action": "POST",
                            "permissionGroup": "66b6d2e9b9ad87dfa985f377",
                            "createdAt": "2024-08-10T02:42:38.531Z",
                            "updatedAt": "2024-08-10T02:42:38.531Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d3dfb9ad87dfa985f44f",
                            "name": "删除角色",
                            "path": "/roles",
                            "action": "DELETE",
                            "permissionGroup": "66b6d2e9b9ad87dfa985f377",
                            "createdAt": "2024-08-10T02:43:43.882Z",
                            "updatedAt": "2024-08-10T02:43:43.882Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d3fab9ad87dfa985f462",
                            "name": "更新角色",
                            "path": "/roles/:id",
                            "action": "PUT",
                            "permissionGroup": "66b6d2e9b9ad87dfa985f377",
                            "createdAt": "2024-08-10T02:44:10.845Z",
                            "updatedAt": "2024-08-10T02:45:31.647Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d40db9ad87dfa985f475",
                            "name": "查看角色",
                            "path": "/roles",
                            "action": "GET",
                            "permissionGroup": "66b6d2e9b9ad87dfa985f377",
                            "createdAt": "2024-08-10T02:44:29.797Z",
                            "updatedAt": "2024-08-10T08:03:18.669Z",
                            "__v": 0
                        }
                    ]
                },
                {
                    "_id": "66b6d2fdb9ad87dfa985f38e",
                    "name": "数据权限",
                    "parent": {
                        "_id": "66b1b54ef8871ea52a7e3de9",
                        "name": "认证管理",
                        "createdAt": "2024-08-06T05:31:58.495Z",
                        "updatedAt": "2024-08-10T02:24:31.070Z",
                        "__v": 0
                    },
                    "createdAt": "2024-08-10T02:39:57.756Z",
                    "updatedAt": "2024-08-10T02:39:57.756Z",
                    "__v": 0,
                    "children": [
                        {
                            "_id": "66b6d544b9ad87dfa985f559",
                            "name": "添加数据权限",
                            "path": "/data-permissions",
                            "action": "POST",
                            "permissionGroup": "66b6d2fdb9ad87dfa985f38e",
                            "createdAt": "2024-08-10T02:49:40.379Z",
                            "updatedAt": "2024-08-10T02:49:40.379Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d559b9ad87dfa985f56c",
                            "name": "删除数据权限",
                            "path": "/data-permissions",
                            "action": "DELETE",
                            "permissionGroup": "66b6d2fdb9ad87dfa985f38e",
                            "createdAt": "2024-08-10T02:50:01.137Z",
                            "updatedAt": "2024-08-10T02:50:01.137Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d578b9ad87dfa985f57f",
                            "name": "更新数据权限",
                            "path": "/data-permissions/:id",
                            "action": "PUT",
                            "permissionGroup": "66b6d2fdb9ad87dfa985f38e",
                            "createdAt": "2024-08-10T02:50:32.533Z",
                            "updatedAt": "2024-08-10T02:50:32.533Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d586b9ad87dfa985f592",
                            "name": "查看数据权限",
                            "path": "/data-permissions",
                            "action": "GET",
                            "permissionGroup": "66b6d2fdb9ad87dfa985f38e",
                            "createdAt": "2024-08-10T02:50:46.780Z",
                            "updatedAt": "2024-08-10T08:03:04.925Z",
                            "__v": 0
                        }
                    ]
                },
                {
                    "_id": "66b6d314b9ad87dfa985f3a7",
                    "name": "权限组",
                    "parent": {
                        "_id": "66b1b54ef8871ea52a7e3de9",
                        "name": "认证管理",
                        "createdAt": "2024-08-06T05:31:58.495Z",
                        "updatedAt": "2024-08-10T02:24:31.070Z",
                        "__v": 0
                    },
                    "createdAt": "2024-08-10T02:40:20.528Z",
                    "updatedAt": "2024-08-10T02:40:20.528Z",
                    "__v": 0,
                    "children": [
                        {
                            "_id": "66b6d4bdb9ad87dfa985f50d",
                            "name": "添加权限组",
                            "path": "/permission-groups",
                            "action": "POST",
                            "permissionGroup": "66b6d314b9ad87dfa985f3a7",
                            "createdAt": "2024-08-10T02:47:25.139Z",
                            "updatedAt": "2024-08-10T02:47:25.139Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d500b9ad87dfa985f520",
                            "name": "删除权限组",
                            "path": "/permission-groups",
                            "action": "DELETE",
                            "permissionGroup": "66b6d314b9ad87dfa985f3a7",
                            "createdAt": "2024-08-10T02:48:32.481Z",
                            "updatedAt": "2024-08-10T02:48:32.481Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d519b9ad87dfa985f533",
                            "name": "更新权限组",
                            "path": "/permission-groups/:id",
                            "action": "PUT",
                            "permissionGroup": "66b6d314b9ad87dfa985f3a7",
                            "createdAt": "2024-08-10T02:48:57.720Z",
                            "updatedAt": "2024-08-10T02:48:57.720Z",
                            "__v": 0
                        },
                        {
                            "_id": "66b6d52cb9ad87dfa985f546",
                            "name": "查看权限组",
                            "path": "/permission-groups",
                            "action": "GET",
                            "permissionGroup": "66b6d314b9ad87dfa985f3a7",
                            "createdAt": "2024-08-10T02:49:16.624Z",
                            "updatedAt": "2024-08-10T08:03:09.517Z",
                            "__v": 0
                        }
                    ]
                },
                {
                    "_id": "66b9ad348554e602536acc67",
                    "name": "认证管理菜单",
                    "parent": {
                        "_id": "66b1b54ef8871ea52a7e3de9",
                        "name": "认证管理",
                        "createdAt": "2024-08-06T05:31:58.495Z",
                        "updatedAt": "2024-08-10T02:24:31.070Z",
                        "__v": 0
                    },
                    "createdAt": "2024-08-12T06:35:32.560Z",
                    "updatedAt": "2024-08-12T06:35:32.560Z",
                    "__v": 0,
                    "children": [
                        {
                            "_id": "66b9ad528554e602536acc84",
                            "name": "授权管理菜单",
                            "path": "/auth",
                            "action": "GET",
                            "permissionGroup": "66b9ad348554e602536acc67",
                            "createdAt": "2024-08-12T06:36:02.754Z",
                            "updatedAt": "2024-08-12T06:36:02.754Z",
                            "__v": 0
                        }
                    ]
                }
            ]
        },
        {
            "_id": "66adec30d647a4fde5546b1c",
            "name": "材料类目",
            "createdAt": "2024-08-03T08:37:04.433Z",
            "updatedAt": "2024-08-10T02:24:51.188Z",
            "__v": 0,
            "children": [
                {
                    "_id": "66b6d7a5b9ad87dfa985f749",
                    "name": "添加材料类目",
                    "path": "/material-categories",
                    "action": "POST",
                    "permissionGroup": "66adec30d647a4fde5546b1c",
                    "createdAt": "2024-08-10T02:59:49.106Z",
                    "updatedAt": "2024-08-10T07:36:39.702Z",
                    "__v": 0
                },
                {
                    "_id": "66b6d7b4b9ad87dfa985f75c",
                    "name": "删除材料类目",
                    "path": "/material-categories",
                    "action": "DELETE",
                    "permissionGroup": "66adec30d647a4fde5546b1c",
                    "createdAt": "2024-08-10T03:00:04.930Z",
                    "updatedAt": "2024-08-10T07:36:36.183Z",
                    "__v": 0
                },
                {
                    "_id": "66b6d7c4b9ad87dfa985f76f",
                    "name": "更新材料类目",
                    "path": "/material-categories/:id",
                    "action": "PUT",
                    "permissionGroup": "66adec30d647a4fde5546b1c",
                    "createdAt": "2024-08-10T03:00:20.075Z",
                    "updatedAt": "2024-08-10T07:36:32.789Z",
                    "__v": 0
                },
                {
                    "_id": "66b6d7d0b9ad87dfa985f782",
                    "name": "查看材料类目",
                    "path": "/material-categories",
                    "action": "GET",
                    "permissionGroup": "66adec30d647a4fde5546b1c",
                    "createdAt": "2024-08-10T03:00:32.932Z",
                    "updatedAt": "2024-08-10T08:02:59.634Z",
                    "__v": 0
                }
            ]
        }
    ],
    "total": 2
}

组件好办,主要是后端这个数据结构,要对上。

name children ,这些要跟组件的参数对上。

无论你的后端如何写,你返回的数据一定要对上:

          fieldNames={{ title: 'name', key: '_id', children: 'children' }}

这是第一步。

下一篇https://editor.csdn.net/md/?articleId=141324925

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2055327.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

StringJoiner以及字符串小练习

概述 String Joiner跟String Builder一样&#xff0c;亦可以看成是一个容器&#xff0c;创建之后iu里面的内容是可变的 作用 提高字符串的操作效率&#xff0c;而且代码编写特别简洁&#xff0c;但是目前市场上很少有人用 JDK8 package stringdemo;import java.util.String…

iTOP-3A5000开发板流畅运行国产系统外加机箱就是一台电脑主机

性能强 采用全国产龙芯3A5000处理器&#xff0c;基于龙芯自主指令系统 (LoongArch)的LA464微结构&#xff0c;并进一步提升频率&#xff0c;降低功耗&#xff0c;优化性能。 桥片 采用龙芯 7A2000&#xff0c;支持PCIE 3.0、USB 3.0和 SATA 3.0.显示接口2 路、HDMI 和1路 VGA&a…

插入数据时,出现存在重复数据异常,捕获异常的信息

Cause: java.sql.SQLIntegrityConstraintViolationException: Duplicate entry xiaomi111-啊啊啊啊 for key edu_class.institution_account 执行插入操作的时候抛出这个异常 怎么捕获这个异常 可以判断 e instanceof 某个具体的异常 然后再进像下面操作&#xff0c;打印出来…

重生奇迹MU:‌重塑经典,‌再创辉煌

在浩瀚的游戏宇宙中&#xff0c;‌有一颗璀璨的星辰&#xff0c;‌它承载着无数玩家的青春回忆与梦想&#xff0c;‌那就是——重生奇迹MU‌。‌作为一款历经岁月洗礼的经典网游&#xff0c;重生奇迹MU不仅见证了游戏行业的蓬勃发展&#xff0c;‌更以其独特的魅力&#xff0c;…

倒计时:可添加可删除的倒计时函数

<!DOCTYPE html> <html lang"zh-CN"><head><meta charset"UTF-8"><meta name"viewport" content"widthdevice-width, initial-scale1.0"><title>倒计时</title> </head><body>…

关于医疗器械维修行业的一些思考

在当今医疗体系中&#xff0c;医疗器械维修行业扮演着不可或缺的角色。作为一名长期关注这一领域的人士&#xff0c;我对其有着一些个人的看法。 首先&#xff0c;医疗器械维修行业的重要性不言而喻。先进的医疗器械是现代医疗诊断和治疗的重要工具&#xff0c;而确保这些设备…

计算机组成原理(3):存储系统

1 存储器概述 主存储器其实就是内存&#xff01; 1.1 存储器的层次结构 ​ 存储器的三大评判指标&#xff1a;速度、容量、价格 ​ 使用任意一种存储器&#xff0c;都无法满足用户对存储器 高速、大容量、低价格 的需求&#xff0c;所以采用 多级结构 形成对应的 “存储体系“。…

从零开始学习网络安全渗透测试之信息收集篇——(二)WEB前端JS架构框架识别泄漏提取API接口枚举FUZZ爬虫插件项目

0、什么是JS渗透测试? 在Javascript中也存在变量和函数&#xff0c;当存在可控变量及函数调用即可参数漏洞JS开发的WEB应用和PHP&#xff0c;JAVA,NET等区别在于即没有源代码&#xff0c;也可以通过浏览器的查看源代码获取真实的点。获取URL&#xff0c;获取JS敏感信息&#…

mkv怎么改成mp4?3种mkv转mp4格式方法的介绍

mkv怎么改成mp4&#xff1f;将MKV格式视频转换为MP4格式&#xff0c;能显著提升兼容性&#xff0c;让视频在更多设备、平台上流畅播放。无论是智能手机、平板电脑、智能电视还是网页浏览器&#xff0c;MP4格式都具备广泛的支持&#xff0c;从而扩大视频的传播范围和受众群体。这…

Android Studio open 一个项目覆盖了当前项目

在新电脑上&#xff0c;想在Android studio 同时打开几个项目,出现了打开新项目会覆盖当前项目的问题&#xff0c; 修复方法如下&#xff1a; File >Settings>System Settings> 按需选择即可&#xff0c;如Ask

建造者模式 和 外观模式

这两种模式很像, 都是将一个复杂的流程统一用一个方法进行包装, 方便外界使用. 建造者模式更像是 外观模式的一种特里, 只对一个类的复杂初始化流程进行包装 建造者模式 简介: 就是一个类的构造方法可能很复杂, 由于系统的限制等原因, 可能很多初始化逻辑不能放在构造函数里,…

微信答题小程序产品研发-数据库与数据表设计

设计答题小程序的数据库和数据表时&#xff0c;我充分考虑了数据的完整性、一致性、安全性和查询效率。 然后&#xff0c;我整理一份关于答题小程序的数据库设计方案。 1. 数据库设计原则 &#xff08;1&#xff09;规范化&#xff1a;确保数据表的设计遵循数据库规范化原则&…

想要在本地生活服务平台赚钱?赶紧了解这些秘籍!

当前&#xff0c;由于本地生活的市场前景不断展现和各大官方平台在本地生活服务商申请、考核方面等多方面要求的持续收紧&#xff0c;本地生活服务平台的搭建逐渐成为了许多创业者首选入局途径&#xff0c;与之相关的本地生活服务平台的盈利点更是因此成为了他们最关心的话题。…

揭秘五大无线领夹麦克风常见智商税:选购时务必多注意!

​随着内容创作和自媒体的兴起&#xff0c;越来越多的人开始关注音频设备的选择&#xff0c;尤其是对无线领夹麦克风的需求日益增长。我们了解到&#xff0c;不少用户在选择过程中会遇到困难&#xff0c;所以接下来要为大家揭晓的是目前无线领夹麦克风行业中比较常见的几个智商…

HIEE451116R0001控制器可议价

HIEE451116R0001控制器可议价 HIEE451116R0001控制器可议价 HIEE451116R0001控制器可议价 HIEE451116R0001控制模块接线图 HIEE451116R0001控制模块电路图 HIEE451116R0001控制模块中文手册 HIEE451116R0001自动化控制是一种通过利用控制理论、仪器仪表、计算机和其他信息…

气膜馆:运动场上的清凉新选择—轻空间

随着气膜结构技术的不断进步&#xff0c;越来越多的运动场馆采用了气膜结构&#xff0c;不仅因为其灵活性和可移动性&#xff0c;还因为它能为运动员和观众提供一个舒适的运动环境。许多人关心在气膜场馆中运动是否会感到闷热&#xff0c;然而事实正相反&#xff0c;现代气膜场…

如何用Java SpringBoot+Vue搭建七彩云南文化旅游网站?

✍✍计算机编程指导师 ⭐⭐个人介绍&#xff1a;自己非常喜欢研究技术问题&#xff01;专业做Java、Python、微信小程序、安卓、大数据、爬虫、Golang、大屏等实战项目。 ⛽⛽实战项目&#xff1a;有源码或者技术上的问题欢迎在评论区一起讨论交流&#xff01; ⚡⚡ Java实战 |…

Lesson 71 He‘s awful!

Lesson 71 He’s awful! 词汇 awful a. 让人讨厌的&#xff0c;坏的&#xff0c;令人恶心的 相关&#xff1a;bad a. 坏的    terrible a. 糟糕的 例句&#xff1a;他是个让人恶心的男孩。    He is an awful boy.    这本书很差。    This book is terrible. t…

书生大模型实战营-进阶关卡-2-Lagent 自定义你的 Agent 智能体

输入&#xff1a;帮我搜索一下 MindSearch 添加自定义自己的智能体 导入相关包 输入&#xff1a;请帮我生成一幅水墨风格的杭州西湖 效果还可以。

Java项目集成RocketMQ

文章目录 1.调整MQ的配置1.进入bin目录2.关闭broker和namesrv3.查看进程确认关闭4.编辑配置文件broker.conf&#xff0c;配置brokerIP15.开放端口109116.重新启动1.进入bin目录2.启动mqnamesrv和mqbroker1.启动 NameServer 并将输出重定向到 mqnamesrv.log2.**启动 Broker 并将…