Ver Fonte

:bug: Fixing a bug.fix 404 page

lishangbu há 6 anos atrás
pai
commit
de46220878
2 ficheiros alterados com 10 adições e 3 exclusões
  1. 5 2
      src/router/page/index.js
  2. 5 1
      src/styles/media.scss

+ 5 - 2
src/router/page/index.js

@@ -71,6 +71,9 @@ export default [{
                 import ( /* webpackChunkName: "page" */ '@/components/iframe/main'),
             props: true
         }]
-
+    },
+    {
+      path: '*',
+      redirect: '/404',
     }
-]
+]

+ 5 - 1
src/styles/media.scss

@@ -111,12 +111,16 @@
         padding-top: 30px !important;
         margin-left: -30px;
     }
+    .login-weaper{
+        margin: 0 auto;
+        width: 96% !important;
+    }
     .login-border {
         border-radius: 5px;
         padding: 40px;
         margin: 0 auto;
         float: none !important;
-        width: 70% !important;
+        width: 100% !important;
     }
     .login-main {
         width: 100% !important;