mirror of
https://gitee.com/bookshelfplus/bookshelfplus
synced 2025-10-11 02:05:15 +08:00
字体加载添加超时时间
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
return res;
|
||||
}
|
||||
function fontmin(text) {
|
||||
axios.post('../fontmin/getfont', { text: text, font: "" })
|
||||
axios.post('../fontmin/getfont', { text: text, font: "" }, { timeout: 1000 })
|
||||
.then(function (response) {
|
||||
// 当接口成功返回时,动态设置css
|
||||
loadFont(response.data.url);
|
||||
|
Reference in New Issue
Block a user