From 60f1b7ebca0d832069e9811998610b8964a474e0 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期五, 09 八月 2024 17:55:45 +0800
Subject: [PATCH] 优化知识库页面兼容性

---
 src/views/login/components/login-form.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/views/login/components/login-form.vue b/src/views/login/components/login-form.vue
index a1259f6..583ef10 100644
--- a/src/views/login/components/login-form.vue
+++ b/src/views/login/components/login-form.vue
@@ -40,14 +40,14 @@
       </a-form-item>
       <a-space :size="16" direction="vertical">
         <div class="login-form-password-actions">
-          <a-checkbox
+          <!-- <a-checkbox
             checked="rememberPassword"
             :model-value="loginConfig.rememberPassword"
             @change="setRememberPassword as any"
           >
             {{ $t('login.form.rememberPassword') }}
-          </a-checkbox>
-          <a-link>{{ $t('login.form.forgetPassword') }}</a-link>
+          </a-checkbox> -->
+          <!-- <a-link>{{ $t("login.form.forgetPassword") }}</a-link> -->
         </div>
         <a-button type="primary" html-type="submit" long :loading="loading">
           {{ $t('login.form.login') }}
@@ -61,7 +61,7 @@
 </template>
 
 <script lang="ts" setup>
-  import { ref, reactive } from 'vue';
+  import { reactive, ref } from 'vue';
   import { useRouter } from 'vue-router';
   import { Message } from '@arco-design/web-vue';
   import { ValidatedError } from '@arco-design/web-vue/es/form/interface';
@@ -101,13 +101,13 @@
       try {
         const rsaPassWord = rsaPsw(values.password) as string;
         console.log(values, '鐧诲綍淇℃伅');
-        await userStore.login({
+        let goto = await userStore.login({
           email: values.email,
           password: rsaPassWord,
         } as LoginData);
         const { redirect, ...othersQuery } = router.currentRoute.value.query;
         router.push({
-          name: 'knowledgeLib',
+          name: goto,
           query: {
             ...othersQuery,
           },

--
Gitblit v1.8.0