fix(dom): Disable the dom cache when vue is present, fixed #119
This commit is contained in:
parent
0fddd1ced4
commit
b9a7275c8f
1 changed files with 3 additions and 0 deletions
|
|
@ -10,6 +10,9 @@ const cacheNode = {}
|
||||||
*/
|
*/
|
||||||
export function getNode (el, noCache = false) {
|
export function getNode (el, noCache = false) {
|
||||||
if (typeof el === 'string') {
|
if (typeof el === 'string') {
|
||||||
|
if (typeof window.Vue !== 'undefined') {
|
||||||
|
return find(el)
|
||||||
|
}
|
||||||
el = noCache ? find(el) : (cacheNode[el] || (cacheNode[el] = find(el)))
|
el = noCache ? find(el) : (cacheNode[el] || (cacheNode[el] = find(el)))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue