# 菜单配置 ## 添加路由菜单 >[info] 范围:支持路由菜单、外部链接菜单、路由缓存等 > 外部菜单:是通过`前端组件`录入外部网址,平台会判断`http`开头采用iframe方式打开。 ## 1.配置路由菜单示例 ![](https://img.kancloud.cn/1e/c7/1ec765b9a6a1a74a6a6f250e2a44c66a_1906x1256.png) ## 2.配置外链菜单示例 ![](https://img.kancloud.cn/2d/47/2d47e2d6c48cc985beea8f80b709ab1d_608x745.png) ## 注意: 1、如果是内嵌方式打开,`是否路由菜单`需要选择是。 2、如果是外部方式打开,`是否路由菜单`随意设置。 3、如果需要当前系统后台前缀打开,需要加前缀` {{ window._CONFIG['domianURL'] }}`, 参考如下 ``` {{ window._CONFIG['domianURL'] }}/jmreport/list?token=${token} ``` 快速插入菜单SQL示例 ``` INSERT INTO `sys_permission`(`id`, `parent_id`, `name`, `url`, `component`, `component_name`, `redirect`, `menu_type`, `perms`, `perms_type`, `sort_no`, `always_show`, `icon`, `is_route`, `is_leaf`, `keep_alive`, `hidden`, `description`, `status`, `del_flag`, `rule_flag`, `create_by`, `create_time`, `update_by`, `update_time`, `internal_or_external`) VALUES ('121008911426059sc947', 'd7d6e2e4e2934f2c9385a623fd98c6f3', '@测试树', '/testgene/CesShopTypeV3List', 'testgene/CesShopTypeV3List', NULL, NULL, 1, NULL, '1', 1111.00, 0, NULL, 1, 1, 1, 0, NULL, '1', 0, 1, 'admin', '2019-12-26 14:45:02', 'admin', '2020-01-06 14:24:14', 0); ```