From de42a428e698cf3ab41967a8e1732f44e1431b0c Mon Sep 17 00:00:00 2001 From: RockYang Date: Wed, 29 Nov 2023 17:36:27 +0800 Subject: [PATCH] opt: create new chat session when change role or model, fix bug for mobile no validate --- web/src/utils/validate.js | 2 +- web/src/views/ChatPlus.vue | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/web/src/utils/validate.js b/web/src/utils/validate.js index c87f7cdf..e7da55df 100644 --- a/web/src/utils/validate.js +++ b/web/src/utils/validate.js @@ -6,6 +6,6 @@ export function validateEmail(email) { } export function validateMobile(mobile) { - const regex = /^1[345789]\d{9}$/; + const regex = /^1[3456789]\d{9}$/; return regex.test(mobile); } \ No newline at end of file diff --git a/web/src/views/ChatPlus.vue b/web/src/views/ChatPlus.vue index ab97842c..976f547a 100644 --- a/web/src/views/ChatPlus.vue +++ b/web/src/views/ChatPlus.vue @@ -83,7 +83,7 @@
聊天角色: - + - + - - - - - 新建会话 - + + + + + + @@ -238,7 +238,6 @@ import { Close, Delete, Edit, - Plus, Promotion, RefreshRight, Search,