提交 eec07649 编写于 作者: D DebugIsFalse

Update [id].vue

上级 f2f7b3f3
...@@ -86,13 +86,15 @@ ...@@ -86,13 +86,15 @@
<UButton size="xs" color="gray" @click="handleShare(index + 1)" leading-icon="i-heroicons-share-20-solid" label="分享" /> <UButton size="xs" color="gray" @click="handleShare(index + 1)" leading-icon="i-heroicons-share-20-solid" label="分享" />
<UButton v-if="index === data.length - 1" size="xs" color="gray" @click="handleReGenerate(index)" leading-icon="i-heroicons-arrow-path-rounded-square-20-solid" label="重写" /> <UButton v-if="index === data.length - 1" size="xs" color="gray" @click="handleReGenerate(index)" leading-icon="i-heroicons-arrow-path-rounded-square-20-solid" label="重写" />
</div> </div>
<div class="text-xl flex items-center space-x-1" v-if="!asking && item.source && item.source.length > 0"> <template v-if="!asking && item.source && item.source.length > 0">
<UIcon name="i-heroicons-link-20-solid" /> <div class="text-xl flex items-center space-x-1">
<span>来源</span> <UIcon name="i-heroicons-link-20-solid" />
</div> <span>来源</span>
<div class="grid grid-cols-1 lg:grid-cols-3 gap-4"> </div>
<ISearchSource :source="item.source" /> <div class="grid grid-cols-1 lg:grid-cols-3 gap-4">
</div> <ISearchSource :source="item.source" />
</div>
</template>
<UDivider v-if="index !== data.length - 1" class="pt-3 pb-2" /> <UDivider v-if="index !== data.length - 1" class="pt-3 pb-2" />
</template> </template>
...@@ -168,7 +170,7 @@ let markedWindowScrollTop = 0 ...@@ -168,7 +170,7 @@ let markedWindowScrollTop = 0
const handleScroll = () => { const handleScroll = () => {
// 在asking操作的时候生效 // 在asking操作的时候生效
if (!asking.value) return if (!asking.value) return
const offsetValue = 10; const offsetValue = 5;
const top = window.scrollY; const top = window.scrollY;
if (top + offsetValue < markedWindowScrollTop) { if (top + offsetValue < markedWindowScrollTop) {
isAutoToBottom.value = false isAutoToBottom.value = false
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册