fix(apiInject): fix stringifying of symbol injection key (#383)
This commit is contained in:
parent
134e932322
commit
7394f7ec42
@ -39,7 +39,7 @@ export function inject(
|
|||||||
} else if (defaultValue !== undefined) {
|
} else if (defaultValue !== undefined) {
|
||||||
return defaultValue
|
return defaultValue
|
||||||
} else if (__DEV__) {
|
} else if (__DEV__) {
|
||||||
warn(`injection "${key}" not found.`)
|
warn(`injection "${String(key)}" not found.`)
|
||||||
}
|
}
|
||||||
} else if (__DEV__) {
|
} else if (__DEV__) {
|
||||||
warn(`inject() can only be used inside setup().`)
|
warn(`inject() can only be used inside setup().`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user