Browse Source

🎈 perf: 优化了部分细节

Pchen. 7 months ago
parent
commit
cfcebb4852

+ 3 - 6
src/components/Header.vue

@@ -26,11 +26,11 @@
                         </el-icon>
                         我的考勤
                     </div>
-                    <div class="item" @click="push('https://git.vthc.cn/Pchen0/Double_X_Attendance')">
+                    <div class="item" @click="$router.push('/Setup')">
                         <el-icon>
-                            <FolderOpened />
+                            <Setting />
                         </el-icon>
-                        代码仓库
+                        设置中心
                     </div>
                     <div class="item" v-if="app.user === undefined" @click="$router.push('/login')">
                         <el-icon>
@@ -110,9 +110,6 @@ if (user != undefined) {
     })
 }
 
-const push = (url) => {
-    window.open(url);
-}
 </script>
 
 <style scoped>

+ 1 - 1
src/pages/Login/components/ForgetPassword.vue

@@ -208,7 +208,7 @@ let Register = () => {
 @media only screen and (max-width: 768px) {
     .content {
         width: 80%;
-        height: 60%;
+        height: 550px;
         padding: 25px;
     }
 

+ 2 - 1
src/pages/Login/components/Index.vue

@@ -7,6 +7,7 @@
             <span @click="update('register')">注册账号</span> |
             <span @click="update('forget')">忘记密码</span>
         </div>
+        <router-view />
     </div>
 </template>
 
@@ -75,7 +76,7 @@ let WXLogin = function () {
 @media only screen and (max-width: 768px) {
     .content {
         width: 80%;
-        height: 35%;
+        height: 300px;
         padding: 25px;
     }
 

+ 1 - 1
src/pages/Login/components/PasswordLogin.vue

@@ -168,7 +168,7 @@ let Login = () => {
 @media only screen and (max-width: 768px) {
     .content {
         width: 80%;
-        height: 45%;
+        height: 400px;
         padding: 25px;
     }
 

+ 1 - 1
src/pages/Login/components/Register.vue

@@ -214,7 +214,7 @@ let Register = () => {
 @media only screen and (max-width: 768px) {
     .content {
         width: 80%;
-        height: 60%;
+        height: 550px;
         padding: 25px;
     }