Browse Source

登录跳转修改

duy 8 months ago
parent
commit
1eeab15683
4 changed files with 12 additions and 8 deletions
  1. 2 1
      src/views/home/auth.vue
  2. 2 1
      src/views/login/index.vue
  3. 4 3
      src/views/login/new.vue
  4. 4 3
      src/views/user/auth.vue

+ 2 - 1
src/views/home/auth.vue

@@ -82,7 +82,8 @@ const loginByTokenApi = async (form) => {
             loading.value = false
             isErrorShow.value = false
             window?.$message?.success('授权登录成功')
-            router.push({ path: toUrl.value })
+            // router.push({ path: toUrl.value })
+            router.push({ name: 'file' })
         }, 500)
     } else {
         window.$message?.error('授权登录失败')

+ 2 - 1
src/views/login/index.vue

@@ -157,7 +157,8 @@ const formValidateClick = async () => {
     window?.$message?.success('登录成功')
     setTimeout(() => {
         loading.value = false
-        router.push({ name: 'datav' })
+        // router.push({ name: 'datav' })
+        router.push({ name: 'file' })
     }, 1500)
 }
 

+ 4 - 3
src/views/login/new.vue

@@ -4,14 +4,14 @@
         <div class="hc-new-login-main hc-full hc-flex-center">
             <div class="hc-new-login-content relative mt-30 w-[985px]">
                 <div class="app-title mb-8 text-center text-[34px] text-white">重庆市交通规划和技术发展中心 (重庆市交通工程档案馆)</div>
-                <div class="hc-new-login-form-card bg-white p-6 flex">
+                <div class="hc-new-login-form-card flex bg-white p-6">
                     <div class="form-left relative flex-1">
                         <img class="form-logo w-[117px]" :src="logoPng" alt="bg">
                         <img class="form-img" :src="imgPng" alt="bg">
                     </div>
                     <div class="form-right relative flex-1">
                         <div class="form-main">
-                            <div class="title font-bold text-center text-[24px]">登&nbsp;&nbsp;录</div>
+                            <div class="title text-center text-[24px] font-bold">登&nbsp;&nbsp;录</div>
                             <el-form ref="formRef" :model="formValue" :rules="formRules" label-position="left" label-width="0px" size="large">
                                 <el-form-item prop="tenantId">
                                     <el-input v-model="formValue.tenantId" clearable placeholder="请输入区域号">
@@ -141,7 +141,8 @@ const formValidateClick = async () => {
     window?.$message?.success('登录成功')
     setTimeout(() => {
         loading.value = false
-        router.push({ name: 'datav' })
+        // router.push({ name: 'datav' })
+        router.push({ name: 'file' })
     }, 1500)
 }
 

+ 4 - 3
src/views/user/auth.vue

@@ -95,9 +95,10 @@ const useAppLoginApi = async (form) => {
         loading.value = false
         isErrorShow.value = false
         window?.$message?.success('授权登录成功')
-        router.push({
-            name: 'datav',
-        })
+        // router.push({
+        //     name: 'datav',
+        // })
+        router.push({ name: 'file' })
     }, 1500)
 }