fix(template-explorer): rename watch -> watchEffect (#780)

This commit is contained in:
djy0 2020-02-26 23:13:07 +08:00 committed by GitHub
parent 1855a7f409
commit 59393dd757
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import * as m from 'monaco-editor'
import { compile, CompilerError, CompilerOptions } from '@vue/compiler-dom'
import { compile as ssrCompile } from '@vue/compiler-ssr'
import { compilerOptions, initOptions, ssrMode } from './options'
import { watch } from '@vue/runtime-dom'
import { watchEffect } from '@vue/runtime-dom'
import { SourceMapConsumer } from 'source-map'
declare global {
@ -221,7 +221,7 @@ window.init = () => {
)
initOptions()
watch(reCompile)
watchEffect(reCompile)
}
function debounce<T extends (...args: any[]) => any>(