ai设置添加ai后滚动条自动滚动

This commit is contained in:
fofolee 2025-04-23 19:21:48 +08:00
parent a762b87d2b
commit ffbae3f33f

View File

@ -18,6 +18,7 @@
/>
</div>
<q-scroll-area
ref="scrollArea"
:style="`height: ${getConfigListHeight()}px;`"
class="q-px-sm"
:vertical-thumb-style="{
@ -263,6 +264,9 @@ export default defineComponent({
this.aiConfigs.push(defaultConfig);
//
this.$nextTick(() => {
this.$refs.scrollArea.setScrollPosition("vertical", 99999);
});
},
getConfigListHeight() {