chore: todo

This commit is contained in:
Evan You 2019-06-19 22:50:14 +08:00
parent 117630fb92
commit 8eb20eede9

View File

@ -26,6 +26,7 @@ export function inject<T>(key: Key<T>): Value<T> | undefined {
if (!currentInstance) {
// TODO warn
} else {
// TODO should also check for app-level provides
const provides = currentInstance.parent && currentInstance.provides
if (provides) {
const val = provides[key as any]