    }
        }).finally(layer.closeAll('loading'))
    }
    layui.use(['form'], function () {
        var form = layui.form,
            layer = layui.layer;
        init()
        //监听提交
        form.on('submit(saveBtn)', function (data) {
            layer.load(1)
            data.field.enable = data.field.enable ? 1 : 0;
            httpPost('/admin/link/edit', data.field).then(res => {
                if (res.status === 'ok') {
                    $message.success('保存成功');