mirror of
https://github.com/yangjian102621/geekai.git
synced 2025-09-20 18:26:37 +08:00
opt: create new chat session when change role or model, fix bug for mobile no validate
This commit is contained in:
parent
d8a9123852
commit
eb36d0742a
@ -6,6 +6,6 @@ export function validateEmail(email) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function validateMobile(mobile) {
|
export function validateMobile(mobile) {
|
||||||
const regex = /^1[345789]\d{9}$/;
|
const regex = /^1[3456789]\d{9}$/;
|
||||||
return regex.test(mobile);
|
return regex.test(mobile);
|
||||||
}
|
}
|
@ -83,7 +83,7 @@
|
|||||||
<div class="chat-head">
|
<div class="chat-head">
|
||||||
<div class="chat-config">
|
<div class="chat-config">
|
||||||
<span class="role-select-label">聊天角色:</span>
|
<span class="role-select-label">聊天角色:</span>
|
||||||
<el-select v-model="roleId" filterable placeholder="角色" class="role-select">
|
<el-select v-model="roleId" filterable placeholder="角色" class="role-select" @change="newChat">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in roles"
|
v-for="item in roles"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@ -97,7 +97,7 @@
|
|||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
|
||||||
<el-select v-model="modelID" placeholder="模型">
|
<el-select v-model="modelID" placeholder="模型" @change="newChat">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in models"
|
v-for="item in models"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
@ -105,12 +105,12 @@
|
|||||||
:value="item.id"
|
:value="item.id"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button type="primary" @click="newChat">
|
<!-- <el-button type="primary" @click="newChat">-->
|
||||||
<el-icon>
|
<!-- <el-icon>-->
|
||||||
<Plus/>
|
<!-- <Plus/>-->
|
||||||
</el-icon>
|
<!-- </el-icon>-->
|
||||||
新建会话
|
<!-- 新建会话-->
|
||||||
</el-button>
|
<!-- </el-button>-->
|
||||||
|
|
||||||
<el-button type="success" @click="exportChat" plain>
|
<el-button type="success" @click="exportChat" plain>
|
||||||
<i class="iconfont icon-export"></i>
|
<i class="iconfont icon-export"></i>
|
||||||
@ -238,7 +238,6 @@ import {
|
|||||||
Close,
|
Close,
|
||||||
Delete,
|
Delete,
|
||||||
Edit,
|
Edit,
|
||||||
Plus,
|
|
||||||
Promotion,
|
Promotion,
|
||||||
RefreshRight,
|
RefreshRight,
|
||||||
Search,
|
Search,
|
||||||
|
Loading…
Reference in New Issue
Block a user