瀏覽代碼

fix: avoid warning when accessing _setupProxy

Evan You 3 年之前
父節點
當前提交
cdfd9f321e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/compiler-sfc/src/prefixIdentifiers.ts

+ 1 - 1
packages/compiler-sfc/src/prefixIdentifiers.ts

@@ -64,7 +64,7 @@ export function prefixIdentifiers(
           s.prependRight(
           s.prependRight(
             node.start!,
             node.start!,
             `var _vm=this,_c=_vm._self._c${
             `var _vm=this,_c=_vm._self._c${
-              isScriptSetup ? `,_setup=_vm._setupProxy;` : `;`
+              isScriptSetup ? `,_setup=_vm._self._setupProxy;` : `;`
             }`
             }`
           )
           )
         }
         }