浏览代码

fix: pageLoading positon

kokoroli 5 年之前
父节点
当前提交
84fd521ee4
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/components/PageLoading/index.jsx

+ 4 - 4
src/components/PageLoading/index.jsx

@@ -16,11 +16,11 @@ export const PageLoading = {
     const style = {
       textAlign: 'center',
       background: 'rgba(0,0,0,0.6)',
-      position: 'absolute',
-      width: '100%',
-      height: '100%',
-      left: 0,
+      position: 'fixed',
       top: 0,
+      bottom: 0,
+      left: 0,
+      right: 0,
       zIndex: 1100
     }
     const spinStyle = {