fix: 修復tabs 標簽外挂設爲-1時,按鈕點擊沒反應的bugs

This commit is contained in:
Jerry committed 2020-12-15 18:52:58 +08:00
1 parent d82f69e83b
commit 83299dfd2f
5 files changed
+13 -11

No files matched your search

+2 -2
View File
@@ -23,11 +23,11 @@ script.
const loadTwikoo = (bool = false) => {
if (typeof twikoo === 'object') {
init()
bool && $countDom && setTimeout(()=>{getCount()},0)
bool && $countDom && setTimeout(getCount,0)
} else {
getScript('!{theme.CDN.twikoo}').then(()=> {
init()
bool && $countDom && setTimeout(()=>{getCount()},0)
bool && $countDom && setTimeout(getCount,0)
})
}
}