fixed some bug that not support SSR

This commit is contained in:
梁灏 2017-07-12 11:17:33 +08:00
parent 449c9e78f3
commit 228c87cd3b

View file

@ -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%';