Browse Source

fix: 修复项目设置报错

lanjianrong 4 years ago
parent
commit
5d91bbe58f
2 changed files with 11 additions and 10 deletions
  1. 1 1
      src/components/LeftSide/index.tsx
  2. 10 9
      src/pages/Login/index.scss

+ 1 - 1
src/components/LeftSide/index.tsx

@@ -12,7 +12,7 @@ const LeftSide:React.FC<iNavSide> = ({ childRoutes, location, showBidsection = f
     if (!showBidsection && !userStore.projectInfo.id) {
       userStore.getProjectInfo()
     }
-    if (!tenderStore.bid) {
+    if (!tenderStore.bid && state?.bidsectionId) {
       tenderStore.saveTenderInfo(state)
     }
   }, [])

+ 10 - 9
src/pages/Login/index.scss

@@ -2,22 +2,23 @@
   width: 100%;
   height: 100%;
   background: linear-gradient(#192948, #33425b);
-  .login-content.bg-1 {
-    background: url('../../assets/img/undraw_all_the_data_h4ki.svg') no-repeat;
-  }
-  .login-content.bg-2 {
-    background: url('../../assets/img/undraw_order_a_car_3tww.svg') no-repeat;
-  }
-  .login-content.bg-3 {
-    background: url('../../assets/img/undraw_work_chat_erdt.svg') no-repeat;
-  }
   .login-content {
     position: relative;
     display: inline-block;
     width: 100%;
     height: 100%;
+    background-repeat: no-repeat;
     background-position: 25% 95%;
     background-size: 35% auto;
+    &.bg-1 {
+      background-image: url('../../assets/img/undraw_all_the_data_h4ki.svg');
+    }
+    &.bg-2 {
+      background-image: url('../../assets/img/undraw_order_a_car_3tww.svg');
+    }
+    &.bg-3 {
+      background-image: url('../../assets/img/undraw_work_chat_erdt.svg');
+    }
     .form-sign {
       position: absolute;
       top: 10%;