mirror of
https://gitee.com/vuejs/vue.git
synced 2024-12-03 20:47:36 +08:00
avoid error when asserting mismatched nodes during hydration
This commit is contained in:
parent
183bd43c3e
commit
92473853dd
@ -534,7 +534,7 @@ export function createPatchFunction (backend) {
|
||||
if (vnode.tag) {
|
||||
return (
|
||||
vnode.tag.indexOf('vue-component') === 0 ||
|
||||
vnode.tag.toLowerCase() === node.tagName.toLowerCase()
|
||||
vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
|
||||
)
|
||||
} else {
|
||||
return _toString(vnode.text) === node.data
|
||||
|
Loading…
Reference in New Issue
Block a user