是的,你可以通过 hideUploadButton: true
在 styleOptions
. 然后将其传递给Web Chat渲染器。对于完整的列表 styleOptions
参数,参考 这个 文件。
const styleOptions = {
hideUploadButton: true,
}
[ ... ]
window.WebChat.renderWebChat(
{
directLine: window.WebChat.createDirectLine( {
token: token
} ),
styleOptions: styleOptions
document.getElementById( 'webchat' )
);
希望能帮到你