Evan You 10 سال پیش
والد
کامیت
d6ea2e5dc8
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      src/runtime/instance/proxy.js

+ 1 - 2
src/runtime/instance/proxy.js

@@ -16,8 +16,7 @@ if (process.env.NODE_ENV !== 'production') {
   proxyHandlers = {
     has (target, key) {
       const has = key in target
-      const allowed = allowedGlobals(key)
-      if (!has && !allowed) {
+      if (!has && !allowedGlobals(key)) {
         warn(
           `Trying to access non-existent property "${key}" while rendering.`,
           target