Procházet zdrojové kódy

fix(apiInject): fix stringifying of symbol injection key (#383)

Dmitry Sharshakov před 6 roky
rodič
revize
7394f7ec42
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      packages/runtime-core/src/apiInject.ts

+ 1 - 1
packages/runtime-core/src/apiInject.ts

@@ -39,7 +39,7 @@ export function inject(
     } else if (defaultValue !== undefined) {
       return defaultValue
     } else if (__DEV__) {
-      warn(`injection "${key}" not found.`)
+      warn(`injection "${String(key)}" not found.`)
     }
   } else if (__DEV__) {
     warn(`inject() can only be used inside setup().`)