File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
ui/src/components/ai-chat Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 146146 ref =" quickInputRef"
147147 v-model =" inputValue"
148148 placeholder =" 请输入"
149- :autosize =" { minRows: 1, maxRows: common. isMobile() ? 4 : 10 }"
149+ :autosize =" { minRows: 1, maxRows: isMobile ? 4 : 10 }"
150150 type =" textarea"
151151 :maxlength =" 100000"
152152 @keydown.enter =" sendChatHandle($event)"
@@ -189,7 +189,8 @@ import { debounce } from 'lodash'
189189defineOptions ({ name: ' AiChat' })
190190const route = useRoute ()
191191const {
192- params : { accessToken, id }
192+ params : { accessToken, id },
193+ query : { mode }
193194} = route as any
194195const props = defineProps ({
195196 data: {
@@ -217,6 +218,10 @@ const emit = defineEmits(['refresh', 'scroll'])
217218
218219const { application, common } = useStore ()
219220
221+ const isMobile = computed (() => {
222+ return common .isMobile () || mode === ' embed'
223+ })
224+
220225const ParagraphSourceDialogRef = ref ()
221226const aiChatRef = ref ()
222227const quickInputRef = ref ()
@@ -608,6 +613,12 @@ watch(
608613 { deep: true , immediate: true }
609614)
610615
616+ onMounted (() => {
617+ setTimeout (() => {
618+ quickInputRef .value .textarea .style .height = ' 0'
619+ }, 1000 )
620+ })
621+
611622defineExpose ({
612623 setScrollBottom
613624})
You can’t perform that action at this time.
0 commit comments