diff --git a/src/core/util/dom.js b/src/core/util/dom.js index 25346eb..f554c2d 100644 --- a/src/core/util/dom.js +++ b/src/core/util/dom.js @@ -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))) }