mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-22 23:28:43 +00:00
build:更新font-awesome的资源地址到国内CDN
This commit is contained in:
parent
19d11d9344
commit
e1f5313c2f
@ -4,7 +4,7 @@ import * as elIcons from '@element-plus/icons-vue'
|
||||
|
||||
const cssUrls: Array<string> = [
|
||||
'//at.alicdn.com/t/font_3135462_5axiswmtpj.css', // 示例链接,建议替换
|
||||
'//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
|
||||
'//cdn.bootcdn.net/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css',
|
||||
]
|
||||
const jsUrls: Array<string> = []
|
||||
|
||||
@ -67,7 +67,7 @@ export function getAwesomeIconfontNames() {
|
||||
return new Promise<string[]>((resolve, reject) => {
|
||||
nextTick(() => {
|
||||
let iconfonts = []
|
||||
let sheets = getStylesFromDomain('netdna.bootstrapcdn.com/font-awesome/')
|
||||
let sheets = getStylesFromDomain('cdn.bootcdn.net/ajax/libs/font-awesome/')
|
||||
for (const key in sheets) {
|
||||
let rules: any = sheets[key].cssRules
|
||||
for (const k in rules) {
|
||||
|
Loading…
Reference in New Issue
Block a user