Commit 9ca9d5e6 authored by nick zheng's avatar nick zheng

fix: 应用广场的应用进入创建应用点击推荐问题无效&web端应用分享页样式调整

parent ad3153a5
<script setup lang="ts">
import { computed, inject, onUnmounted, ref } from 'vue'
import { computed, inject, onMounted, onUnmounted, ref } from 'vue'
import { Emitter } from 'mitt'
import { useI18n } from 'vue-i18n'
import { fetchCustomEventSource } from '@/composables/useEventSource'
......@@ -55,9 +55,11 @@ onUnmounted(() => {
emitter?.off('selectQuestion')
})
emitter?.on('selectQuestion', (featuredQuestion) => {
inputMessageContent.value = featuredQuestion
handleMessageSend()
onMounted(() => {
emitter?.on('selectQuestion', (featuredQuestion) => {
inputMessageContent.value = featuredQuestion
handleMessageSend()
})
})
function messageItemFactory() {
......
......@@ -55,9 +55,9 @@ function handleToLogin() {
<span class="mb-1 line-clamp-1 max-w-[200px] break-all">{{ agentApplicationConfig.baseInfo.agentTitle }}</span>
<div class="flex items-center text-xs text-[#84868c]">
<img v-show="isLogin" :src="agentMemberInfo.avatarUrl" class="mr-2 h-5 w-5 rounded-full" />
<p v-show="isLogin" class="mr-4 line-clamp-1 max-w-[120px] break-words break-all">
{{ agentMemberInfo.nickName }}
</p>
<n-ellipsis v-show="isLogin" class="max-w-[120px]! mr-4">
<span class="select-none">{{ agentMemberInfo.nickName }}</span>
</n-ellipsis>
<span>
{{ t('common_module.publish_time_in') }}
{{ formatDateTime(agentApplicationConfig.modifiedTime) }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment