ZaiZai 2 жил өмнө
parent
commit
8fcee0a421

+ 40 - 0
src/styles/error/app-auth.scss

@@ -0,0 +1,40 @@
+.error-page {
+    background: #f0f2f5;
+    height: 100vh;
+    display: flex;
+    align-items: center;
+    justify-content: center;
+    .img {
+        margin-right: 80px;
+        height: 360px;
+        width: 100%;
+        max-width: 430px;
+        background-repeat: no-repeat;
+        background-position: 50% 50%;
+        background-size: contain;
+    }
+    .content {
+        h1 {
+            color: #434e59;
+            font-size: 72px;
+            font-weight: 600;
+            line-height: 72px;
+            margin-bottom: 24px;
+        }
+        .desc {
+            color: rgba(0, 0, 0, 0.45);
+            font-size: 20px;
+            line-height: 28px;
+            margin-bottom: 16px;
+        }
+    }
+}
+
+html.theme-dark {
+    .error-page {
+        background: var(--hc-bg-color);
+        .content .desc {
+            color: var(--hc-text-color);
+        }
+    }
+}

+ 3 - 5
src/views/login/auth.vue

@@ -40,7 +40,6 @@ onMounted(() => {
     const { token } = useRoutes.query
     console.log(token)
     if (token) {
-        isErrorShow.value = false
         useAppState.setTokenVal(token)
         queryCurrentUserData()
     } else {
@@ -73,8 +72,7 @@ const useAppLoginApi = async (form) => {
         loading.value = false
         isErrorShow.value = false
         window?.$message?.success('授权登录成功')
-        // router.push({path: '/home/index'});
-        router.push({ path: '/using/stats' })//跳转到档案统计页面
+        //router.push({ path: '/using/stats' })//跳转到档案统计页面
     }).catch(() => {
         window.$message?.error('授权登录失败')
         isErrorShow.value = true
@@ -84,12 +82,12 @@ const useAppLoginApi = async (form) => {
 
 //跳转登陆
 const toLoginTap = () => {
-    router.push({ path: '/login' })
+    //router.push({ path: '/login' })
 }
 </script>
 
 <style lang="scss" scoped>
-@import "../../styles/error/style.scss";
+@import "../../styles/error/app-auth.scss";
 .hc-body-loading {
     position: relative;
     height: 100%;