在el-dialog标签加上
:append-to-body="true"
例:
bash
<el-dialog :append-to-body="true">
</el-dialog>
:append-to-body="true"
例:
<el-dialog :append-to-body="true">
</el-dialog>