Browse Source

fix: avoid warning when accessing _setupProxy

Evan You 4 years ago
parent
commit
cdfd9f321e
1 changed files with 1 additions and 1 deletions
  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;` : `;`
             }`
             }`
           )
           )
         }
         }