Requires iconfont.css and iconfont.ttf
1. Change the src path in the iconfont.css file to make it the same as the path of the iconfont.ttf file
@font-face{
font-family: 'iconfont';
src: url('static/iconfont.ttf');
}
2. Introduce in the vue file
<view class='iconfont iconfontcopy'></view>
<style>
@import url("../../static/css/iconfont/iconfont.css");
</style>