log" type="button">取消</button>
        <button class="layui-btn" lay-filter="menus-form-submit" lay-submit>保存</button>
    </div>
</form>

<script>
    layui.use(['layer', 'admin', 'form', 'formSelects'],function () {
        var layer = layui.layer;
        var admin = layui.admin;
        var form = layui.form;
        var formSelects = layui.formSelects;

        // 修改菜单类型
        let changeType = function (type) {
            if (type == 2) {
                $('#pathMethod').attr('di