mirror of https://github.com/vuejs/core.git
parent
9698dd3cf1
commit
8963c5508c
|
@ -33,7 +33,8 @@ export function createSlots(
|
||||||
const res = slot.fn(...args)
|
const res = slot.fn(...args)
|
||||||
// attach branch key so each conditional branch is considered a
|
// attach branch key so each conditional branch is considered a
|
||||||
// different fragment
|
// different fragment
|
||||||
;(res as any).key = slot.key
|
// #6651 res can be undefined in SSR in string push mode
|
||||||
|
if (res) (res as any).key = slot.key
|
||||||
return res
|
return res
|
||||||
}
|
}
|
||||||
: slot.fn
|
: slot.fn
|
||||||
|
|
Loading…
Reference in New Issue