-
![]()
+
+
+
{{ name }}
{{ account }}
@@ -161,6 +163,7 @@ const logout = () => {
{{ $t('common.help') }}
+
@@ -251,6 +254,7 @@ const logout = () => {
box-shadow: 0px 4px 8px 0px #1f23291a;
border: 1px solid #dee0e3;
position: relative;
+ border-radius: 6px;
&::after {
content: '';
@@ -278,7 +282,7 @@ const logout = () => {
padding: 8px;
margin-bottom: 4px;
- img {
+ .avatar-custom {
float: left;
margin: 3px 8px 0 7px;
}
@@ -320,7 +324,7 @@ const logout = () => {
}
&.mr4 {
- margin: 4px 0;
+ margin: 4px;
}
.right {
diff --git a/frontend/src/components/layout/PwdForm.vue b/frontend/src/components/layout/PwdForm.vue
index 465a8138..6c4fe3ae 100644
--- a/frontend/src/components/layout/PwdForm.vue
+++ b/frontend/src/components/layout/PwdForm.vue
@@ -9,13 +9,18 @@ const pwdForm = reactive({
new_pwd: '',
confirm_pwd: '',
})
-
+const PWD_REGEX =
+ /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+\-={}|:"<>?`\[\];',./])[A-Za-z\d~!@#$%^&*()_+\-={}|:"<>?`\[\];',./]{8,20}$/
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
const validatePass = (rule: any, value: any, callback: any) => {
if (value === '') {
callback(new Error(t('common.please_input', { msg: t('user.upgrade_pwd.new_pwd') })))
} else {
+ if (!PWD_REGEX.test(value)) {
+ callback(new Error(t('user.upgrade_pwd.pwd_format_error')))
+ return
+ }
if (pwdForm.confirm_pwd !== '') {
if (!pwdRef.value) return
pwdRef.value.validateField('confirm_pwd')
@@ -28,6 +33,8 @@ const validatePass = (rule: any, value: any, callback: any) => {
const validatePass2 = (rule: any, value: any, callback: any) => {
if (value === '') {
callback(new Error(t('common.please_input', { msg: t('user.upgrade_pwd.confirm_pwd') })))
+ } else if (!PWD_REGEX.test(value)) {
+ callback(new Error(t('user.upgrade_pwd.pwd_format_error')))
} else if (value !== pwdForm.new_pwd) {
callback(new Error(t('user.upgrade_pwd.two_pwd_not_match')))
} else {
diff --git a/frontend/src/components/layout/Workspace.vue b/frontend/src/components/layout/Workspace.vue
index 63d2335a..d1a31c6e 100644
--- a/frontend/src/components/layout/Workspace.vue
+++ b/frontend/src/components/layout/Workspace.vue
@@ -78,7 +78,7 @@ onMounted(async () => {
>
-
+
diff --git a/frontend/src/views/chat/ChatList.vue b/frontend/src/views/chat/ChatList.vue
index ae853c48..04d4b682 100644
--- a/frontend/src/views/chat/ChatList.vue
+++ b/frontend/src/views/chat/ChatList.vue
@@ -221,7 +221,12 @@ const handleConfirmPassword = () => {
{{ chat.brief ?? 'Untitled' }}
-
+
diff --git a/frontend/src/views/chat/ChatListContainer.vue b/frontend/src/views/chat/ChatListContainer.vue
index 7aa0a8d4..760d902f 100644
--- a/frontend/src/views/chat/ChatListContainer.vue
+++ b/frontend/src/views/chat/ChatListContainer.vue
@@ -19,6 +19,7 @@ const props = withDefaults(
currentChatId?: number
currentChat?: ChatInfo
loading?: boolean
+ appName?: string
}>(),
{
chatList: () => [],
@@ -26,6 +27,7 @@ const props = withDefaults(
currentChat: () => new ChatInfo(),
loading: false,
inPopover: false,
+ appName: '',
}
)
@@ -43,7 +45,7 @@ const emits = defineEmits([
])
const assistantStore = useAssistantStore()
-const isAssistant = computed(() => assistantStore.getAssistant)
+const isCompletePage = computed(() => !assistantStore.getAssistant || assistantStore.getEmbedded)
const search = ref()
@@ -145,7 +147,7 @@ const createNewChat = async () => {
}
async function doCreateNewChat() {
- if (isAssistant.value) {
+ if (!isCompletePage.value) {
return
}
chatCreatorRef.value?.showDs()
@@ -214,7 +216,7 @@ function onChatRenamed(chat: Chat) {