mirror of
https://github.com/2234839/web-font.git
synced 2025-04-05 20:35:50 +08:00
🐛 修复在路径别名的情况下无法访问到 zip 的问题
This commit is contained in:
parent
da88a99365
commit
fbc4fa82ec
@ -29,7 +29,7 @@
|
||||
const family = r.match(/font-family: "(.*)"/)[1];
|
||||
font.css = r;
|
||||
font.family = family;
|
||||
font.zip=r.match(/(asset\/font\/\d+\/)/)[0]+'asset.zip'
|
||||
font.zip=location.pathname+r.match(/(asset\/font\/\d+\/)/)[0]+'asset.zip'
|
||||
/** 因为要触发其他更新则必须对这个变量重新赋值 */
|
||||
font_list = font_list;
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user