해결책:
1. 루트 디렉토리 아래에 있는 글꼴 파일을 다른 폴더 프로젝트로 전송합니다. 예를 들어 루트 디렉토리에 스타일 디렉토리를 만들었습니다.
2. @import url('/style/iconfont/iconfont.css') 내부의 글꼴 폴더와 파일을 복사합니다.
3. 아이콘폰트.css
@font-face {
font-family: "iconfont"; /* Project id 2557476 */
src: url('~@/style/font/iconfont.woff2?t=1644809356053') format('woff2'),
url('~@/style/font/iconfont.woff?t=1644809356053') format('woff'),
url('~@/style/font/iconfont.ttf?t=1644809356053') format('truetype');
}
4. 정적 파일 아래의 글꼴 폴더를 삭제하고 다시 업로드하면 글꼴 파일 프롬프트가 나타나지 않습니다.