Skip to content

Commit

Permalink
feat: modify review
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanlid committed Feb 27, 2025
1 parent e56ea0d commit bfb796b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/plugins/robot/src/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,19 @@
</section>
<header class="chat-title">
<tiny-popover
ref="popoverRef"
width="270"
trigger="manual"
v-model="showPopover"
:visible-arrow="false"
popper-class="chat-popover"
>
<robotSettingPopover
<RobotSettingPopover
v-if="showPopover"
:typeValue="selectedModel"
:tokenValue="tokenValue"
@changeType="changeModel"
@close="closePanel"
></robotSettingPopover>
></RobotSettingPopover>
<template #reference>
<span class="chat-title-dropdown" @click.stop="showPopover = true">
<span class="chat-title-label">{{ selectedModel.label }}</span>
Expand Down Expand Up @@ -117,7 +116,7 @@ import { ref, onMounted, watchEffect } from 'vue'
import { TinyLayout, TinyRow, TinyCol, TinyButton, TinyInput, Notify, Loading, TinyPopover } from '@opentiny/vue'
import { useCanvas, useHistory, usePage, useModal, getMetaApi, META_SERVICE } from '@opentiny/tiny-engine-meta-register'
import { extend } from '@opentiny/vue-renderless/common/object'
import robotSettingPopover from './robotSettingPopover.vue'
import RobotSettingPopover from './RobotSettingPopover.vue'
import { getBlockContent, initBlockList, AIModelOptions } from './js/robotSetting'
export default {
Expand All @@ -128,7 +127,7 @@ export default {
TinyCol,
TinyInput,
TinyPopover,
robotSettingPopover
RobotSettingPopover
},
emits: ['close-chat'],
setup() {
Expand Down

0 comments on commit bfb796b

Please sign in to comment.