🐛 修复在路径别名的情况下无法访问到 zip 的问题

This commit is contained in:
崮生 2020-03-21 17:49:21 +08:00
parent da88a99365
commit fbc4fa82ec

View File

@ -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;
})