![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/376d8310f8db4d16a47faadcef323d5e.png)
![在这里插入图片描述](https://i-blog.csdnimg.cn/direct/59dd36cc6b9e46819b58ec3b6c65aded.png)
1.el-form添加hide-required-asterisk
<el-form :model="userInfoForm" label-width="80px" :inline="true" :rules="rules" ref="ruleForm"
label-position="top"
hide-required-asterisk
>
2.添加样式
.el-form-item.is-required>.el-form-item__label::after {
content: '*';
color: #F56C6C;
margin-left: 4px;
}