1.找到要使用图标的Unicode字符

在这里插入图片描述

2.代码中添加
.el-form-item__error:before {
            content: '\f06a';
            font-family: FontAwesome; //FontAwesome图标
 }
&::after {
                content: '\e60b';
                font-family: "iconfont"; //iconfont 图标
                position: absolute;
                font-size: 16px;
                width: 34px;
                height: 34px;
                color: #fff;
                right: -5%;
                top: 5%;
            }
Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐