1.Modal组件为了可以自定义按钮名称和避免错误时也会自动关闭Modal组件,
我们一般自定义页脚
<div style="text-align: right" slot="footer">
<Button type="error" @click="remove" style="margin-top: 8px"
>取消</Button
>
<Button
type="primary"
@click="checkBookList"
style="margin-top: 8px"
>保存并发布</Button
>
</div>
2.使用modal组件时会出现闪关的情况,解决方法如下,加上定时器