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

This commit is contained in:
Dmitry Sharshakov 2019-10-26 17:52:29 +03:00 committed by Evan You
parent 134e932322
commit 7394f7ec42

View File

@ -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().`)