fix markdown formula parse plugin

This commit is contained in:
RockYang
2024-05-29 13:49:45 +08:00
parent 1b0938b33f
commit f0959b5df6
9 changed files with 29 additions and 66 deletions

View File

@@ -225,18 +225,6 @@ const newChat = (item) => {
}
showPicker.value = false
const options = item.selectedOptions
// setChatConfig({
// role: {
// id: options[0].value,
// name: options[0].text,
// icon: options[0].icon,
// helloMsg: options[0].helloMsg
// },
// model: options[1].value,
// modelValue: getModelValue(options[1].value),
// title: '新建会话',
// chatId: 0
// })
router.push({
name: "mobile-chat-session",
params: {role_id: options[0].value, model_id: options[1].value, title: '新建会话', chat_id: 0}
@@ -244,25 +232,6 @@ const newChat = (item) => {
}
const changeChat = (chat) => {
// let role = {}
// for (let i = 0; i < roles.value.length; i++) {
// if (roles.value[i].value === chat.role_id) {
// role = roles.value[i]
// break
// }
// }
// setChatConfig({
// role: {
// id: chat.role_id,
// name: role.text,
// icon: role.icon
// },
// model: chat.model_id,
// modelValue: getModelValue(chat.model_id),
// title: chat.title,
// chatId: chat.chat_id,
// helloMsg: chat.hello_msg,
// })
router.push(`/mobile/chat/session?chat_id=${chat.chat_id}`)
}