fix(scroll) highlight bug

This commit is contained in:
qingwei.li 2017-02-19 22:29:35 +08:00
commit 6b08546654
3 changed files with 56 additions and 53 deletions

View file

@ -31,10 +31,12 @@ function renderMain (html) {
// execute script
this.config.executeScript && executeScript()
if (!this.config.executeScript &&
if (this.config.executeScript !== false &&
typeof window.Vue !== 'undefined' &&
!executeScript()) {
setTimeout(_ => {
const vueVM = window.__EXECUTE_RESULT__
vueVM && vueVM.$destroy && vueVM.$destroy()
window.__EXECUTE_RESULT__ = new window.Vue().$mount('#main')
}, 0)
}