fixed some bug that not support SSR
This commit is contained in:
parent
449c9e78f3
commit
228c87cd3b
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ export function camelcaseToHyphen (str) {
|
|||
// For Modal scrollBar hidden
|
||||
let cached;
|
||||
export function getScrollBarSize (fresh) {
|
||||
if (isServer) return 0;
|
||||
if (fresh || cached === undefined) {
|
||||
const inner = document.createElement('div');
|
||||
inner.style.width = '100%';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue