From 20bf3264933f6b47b1d562c15f302083c891cfa7 Mon Sep 17 00:00:00 2001 From: nikogu <644506165@qq.com> Date: Tue, 24 Oct 2017 16:54:20 +0800 Subject: [PATCH] fixed get width --- src/routes/Profile/AdvancedProfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/Profile/AdvancedProfile.js b/src/routes/Profile/AdvancedProfile.js index 94299777..357d56d2 100644 --- a/src/routes/Profile/AdvancedProfile.js +++ b/src/routes/Profile/AdvancedProfile.js @@ -11,7 +11,7 @@ import styles from './AdvancedProfile.less'; const { Step } = Steps; const { Description } = DescriptionList; -const getWindowWidth = () => (window.innerWidth || document.documentElement.documentElement); +const getWindowWidth = () => (window.innerWidth || document.documentElement.clientWidth); const menu = (