Drawer - 点击“确认” 怎么跳转到指定的页面
Drawer - 点击“确认” 怎么跳转到指定的页面
自己配置确认按钮
可以给个案例吗?
自己配置确认按钮
可以给个案例吗?
drawer 那层配置 actions: [{type: 'button', actionType: 'link', link: '/xxxx', label: '确认'}] 相关文档:
- https://baidu.github.io/amis/docs/renderers/Drawer
- https://baidu.github.io/amis/docs/renderers/Action#link
drawer 那层配置 actions: [{type: 'button', actionType: 'link', link: '/xxxx', label: '确认'}] 相关文档:
- https://baidu.github.io/amis/docs/renderers/Drawer
- https://baidu.github.io/amis/docs/renderers/Action#link
好的,谢谢
添加这个代码后,api,点击确认,然后没反应,
嗯,你应该是想提交表单后跳转
用form的redirect属性,然后按钮配置成submit;或者把actions删了,使用默认提交按钮就行
嗯,要有 form 的话就得设置 form 的 redirect 了,你之前又没说清楚
ok,谢谢