diff --git a/src/overlay/utils/position.js b/src/overlay/utils/position.js index 956cc9d823..816f9cf883 100644 --- a/src/overlay/utils/position.js +++ b/src/overlay/utils/position.js @@ -77,6 +77,11 @@ function _getViewportSize(container) { } const getContainer = ({ container, baseElement }) => { + // SSR下会有副作用 + if (typeof document === undefined) { + return container; + } + let calcContainer = findNode(container, baseElement); if (!calcContainer) {