From da555b0e8e1ff75b3daa4fe62d1b3337b2aae72d Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期二, 06 八月 2024 18:58:50 +0800
Subject: [PATCH] 智能体配置页面修改
---
src/views/login/components/login-form.vue | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/src/views/login/components/login-form.vue b/src/views/login/components/login-form.vue
index 02b12da..8d4c702 100644
--- a/src/views/login/components/login-form.vue
+++ b/src/views/login/components/login-form.vue
@@ -83,12 +83,12 @@
const loginConfig = useStorage('login-config', {
rememberPassword: true,
- email: '1750082535@qq.com', // 婕旂ず榛樿鍊�
- password: 'basic2024', // demo default value
+ email: '', // 婕旂ず榛樿鍊�
+ password: '', // demo default value
});
const userInfo = reactive({
- email: '1750082535@qq.com', // 婕旂ず榛樿鍊�
- password: 'basic2024', // demo default value
+ email: '', // 婕旂ず榛樿鍊�
+ password: '', // demo default value
});
const handleSubmit = async ({
@@ -102,18 +102,18 @@
if (!errors) {
setLoading(true);
try {
- // const rsaPassWord = rsaPsw(values.password) as string;
- // console.log(values,'鐧诲綍淇℃伅');
- // await userStore.login({
- // email: values.email,
- // password: rsaPassWord,
- // } as LoginData);
- // const { redirect, ...othersQuery } = router.currentRoute.value.query;
+ const rsaPassWord = rsaPsw(values.password) as string;
+ console.log(values,'鐧诲綍淇℃伅');
+ await userStore.login({
+ email: values.email,
+ password: rsaPassWord,
+ } as LoginData);
+ const { redirect, ...othersQuery } = router.currentRoute.value.query;
router.push({
name: 'knowledgeLib',
- // query: {
- // ...othersQuery,
- // },
+ query: {
+ ...othersQuery,
+ },
});
Message.success(t('娆㈣繋鍥炴潵'));
const { rememberPassword } = loginConfig.value;
--
Gitblit v1.8.0