如图:
解决方案
在el-dialog
上加 :append-to-body="true"
,如下
<el-dialog :visible.sync="dialogUserVisible" title="修改密码" :append-to-body="true">
<el-form ref="dataForm" label-position="left" label-width="100px" >
<el-form-item label="新密码">
<el-input type="text" aria-placeholder="请输入新密码" />
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogUserVisible = false">取消</el-button>
<el-button type="primary" @click="dialogUserVisible = false">确认</el-button>
</span>
</el-dialog>