Evan You 9 年之前
父节点
当前提交
4a66c3d7ca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/platforms/web/compiler/index.js

+ 1 - 1
src/platforms/web/compiler/index.js

@@ -35,7 +35,7 @@ export function compile (
 export function compileToFunctions (
   template: string,
   options?: CompilerOptions,
-  vm: Component
+  vm?: Component
 ): CompiledFunctionResult {
   const _warn = (options && options.warn) || warn
   // detect possible CSP restriction