mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-11-30 19:20:06 +08:00
fix(dom): Disable the dom cache when vue is present, fixed #119
This commit is contained in:
parent
0fddd1ced4
commit
b9a7275c8f
@ -10,6 +10,9 @@ const cacheNode = {}
|
||||
*/
|
||||
export function getNode (el, noCache = false) {
|
||||
if (typeof el === 'string') {
|
||||
if (typeof window.Vue !== 'undefined') {
|
||||
return find(el)
|
||||
}
|
||||
el = noCache ? find(el) : (cacheNode[el] || (cacheNode[el] = find(el)))
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user