fix: bug fix

This commit is contained in:
dataeaseShu
2025-07-28 10:22:10 +08:00
parent aecb3d0659
commit 4e5e34ee15
6 changed files with 36 additions and 14 deletions
+4 -1
View File
@@ -6,6 +6,9 @@
"AI Model Configuration": "AI Model Configuration"
},
"common": {
"enter_your_password": "Please enter your password",
"your_account_email_address": "Please enter your account/email address",
"the_correct_password": "Please enter the correct password",
"input_content": "Please Input Content",
"empty": " ",
"may_not_exist": "No results yet, the user may not exist",
@@ -514,4 +517,4 @@
"back_community": "Restore to Community Edition",
"confirm_tips": "Are you sure to restore to Community Edition?"
}
}
}
+4 -1
View File
@@ -6,6 +6,9 @@
"AI Model Configuration": "模型配置"
},
"common": {
"enter_your_password": "请输入密码",
"your_account_email_address": "请输入账号/邮箱",
"the_correct_password": "请输入正确的密码",
"input_content": "请输入内容",
"may_not_exist": "暂无结果,用户可能不存在",
"empty": "",
@@ -529,4 +532,4 @@
"back_community": "还原至社区版",
"confirm_tips": "确定还原至社区版?"
}
}
}
@@ -43,9 +43,9 @@ const handleDefaultChatChange = (val: any) => {
<el-popover trigger="click" popper-class="chat-type_select" placement="bottom">
<template #reference>
<div
@click="firstItem"
class="chat-select_type"
:class="chartType && chartType !== 'table' && 'active'"
@click="firstItem"
>
<component :is="currentIcon" />
<el-icon style="transform: scale(0.75)" class="expand" size="16">
+27 -9
View File
@@ -7,22 +7,26 @@
<div class="login-right">
<div class="login-form">
<h2 class="title">Login</h2>
<el-form ref="loginFormRef" :model="loginForm" :rules="rules" @keyup.enter="submitForm">
<el-form
ref="loginFormRef"
class="form-content_error"
:model="loginForm"
:rules="rules"
@keyup.enter="submitForm"
>
<el-form-item prop="username">
<el-input
v-model="loginForm.username"
placeholder="Account"
:prefix-icon="User"
:placeholder="$t('common.your_account_email_address')"
size="large"
></el-input>
</el-form-item>
<el-form-item prop="password">
<el-input
v-model="loginForm.password"
placeholder="Password"
:placeholder="$t('common.enter_your_password')"
type="password"
show-password
:prefix-icon="Lock"
size="large"
></el-input>
</el-form-item>
@@ -40,10 +44,11 @@
import { ref } from 'vue'
import { useRouter } from 'vue-router'
import { useUserStore } from '@/stores/user'
import { User, Lock } from '@element-plus/icons-vue'
import { useI18n } from 'vue-i18n'
const router = useRouter()
const userStore = useUserStore()
const { t } = useI18n()
const loginForm = ref({
username: '',
@@ -51,8 +56,8 @@ const loginForm = ref({
})
const rules = {
username: [{ required: true, message: 'Please input account', trigger: 'blur' }],
password: [{ required: true, message: 'Please input password', trigger: 'blur' }],
username: [{ required: true, message: t('common.your_account_email_address'), trigger: 'blur' }],
password: [{ required: true, message: t('common.the_correct_password'), trigger: 'blur' }],
}
const loginFormRef = ref()
@@ -109,10 +114,24 @@ const submitForm = () => {
padding: 40px;
display: flex;
align-items: center;
position: relative;
height: 361px;
.login-form {
width: 100%;
padding: 0 40px;
position: absolute;
top: 40px;
left: 0;
.form-content_error {
.ed-form-item--default {
margin-bottom: 24px;
&.is-error {
margin-bottom: 48px;
}
}
}
.title {
font-size: 28px;
@@ -126,7 +145,6 @@ const submitForm = () => {
height: 45px;
font-size: 16px;
border-radius: 4px;
margin-top: 20px;
}
.agreement {
-1
View File
@@ -366,7 +366,6 @@ import { workspaceList } from '@/api/workspace'
import { formatTimestamp } from '@/utils/date'
import { ClickOutside as vClickOutside } from 'element-plus-secondary'
import icon_warning_filled from '@/assets/svg/icon_warning_filled.svg'
import { cloneDeep } from 'lodash'
const { t } = useI18n()
const keyword = ref('')
@@ -205,7 +205,6 @@ const handleCheckAllChange = (val: any) => {
}
}
const handleToggleRowSelection = (check: boolean = true) => {
let i = 0
const ids = multipleSelectionAll.value.map((ele: any) => ele.id)