mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2025-09-15 12:58:48 +08:00
fix: 当 site.data.link 为空时报错
This commit is contained in:
parent
90a923eb4b
commit
f12ae8fbb3
@ -40,7 +40,7 @@
|
||||
window.lazyLoadInstance && window.lazyLoadInstance.update()
|
||||
}
|
||||
|
||||
const linkData = !{JSON.stringify(site.data.link)}
|
||||
const linkData = !{JSON.stringify(site.data.link || {})}
|
||||
if ("!{page.flink_url}") {
|
||||
fetch("!{url_for(page.flink_url)}")
|
||||
.then(response => response.json())
|
||||
|
||||
Loading…
Reference in New Issue
Block a user