提交 15049787 编写于 作者: 雪洛's avatar 雪洛

fix(uni-app-x web): 修复ssr mismatch校验报错的Bug

上级 54291a10
......@@ -6146,7 +6146,7 @@ function createHydrationFunctions(rendererInternals) {
break;
default:
if (shapeFlag & 1) {
if ((domType !== 1 /* ELEMENT */ || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && vnode.type.toLowerCase() !== "uni-" + node.tagName.toLowerCase() && !isTemplateNode(node)) {
if ((domType !== 1 /* ELEMENT */ || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && (domType !== 1 /* ELEMENT */ || vnode.type.toLowerCase() !== "uni-" + node.tagName.toLowerCase()) && !isTemplateNode(node)) {
nextNode = onMismatch();
} else {
nextNode = hydrateElement(
......
......@@ -6154,7 +6154,7 @@ function createHydrationFunctions(rendererInternals) {
break;
default:
if (shapeFlag & 1) {
if ((domType !== 1 /* ELEMENT */ || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && vnode.type.toLowerCase() !== "uni-" + node.tagName.toLowerCase() && !isTemplateNode(node)) {
if ((domType !== 1 /* ELEMENT */ || vnode.type.toLowerCase() !== node.tagName.toLowerCase()) && (domType !== 1 /* ELEMENT */ || vnode.type.toLowerCase() !== "uni-" + node.tagName.toLowerCase()) && !isTemplateNode(node)) {
nextNode = onMismatch();
} else {
nextNode = hydrateElement(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册