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

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

parent ad3153a5
<script setup lang="ts"> <script setup lang="ts">
import { computed, inject, onUnmounted, ref } from 'vue' import { computed, inject, onMounted, onUnmounted, ref } from 'vue'
import { Emitter } from 'mitt' import { Emitter } from 'mitt'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
import { fetchCustomEventSource } from '@/composables/useEventSource' import { fetchCustomEventSource } from '@/composables/useEventSource'
...@@ -55,9 +55,11 @@ onUnmounted(() => { ...@@ -55,9 +55,11 @@ onUnmounted(() => {
emitter?.off('selectQuestion') emitter?.off('selectQuestion')
}) })
emitter?.on('selectQuestion', (featuredQuestion) => { onMounted(() => {
emitter?.on('selectQuestion', (featuredQuestion) => {
inputMessageContent.value = featuredQuestion inputMessageContent.value = featuredQuestion
handleMessageSend() handleMessageSend()
})
}) })
function messageItemFactory() { function messageItemFactory() {
......
...@@ -55,9 +55,9 @@ function handleToLogin() { ...@@ -55,9 +55,9 @@ function handleToLogin() {
<span class="mb-1 line-clamp-1 max-w-[200px] break-all">{{ agentApplicationConfig.baseInfo.agentTitle }}</span> <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]"> <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" /> <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"> <n-ellipsis v-show="isLogin" class="max-w-[120px]! mr-4">
{{ agentMemberInfo.nickName }} <span class="select-none">{{ agentMemberInfo.nickName }}</span>
</p> </n-ellipsis>
<span> <span>
{{ t('common_module.publish_time_in') }} {{ t('common_module.publish_time_in') }}
{{ formatDateTime(agentApplicationConfig.modifiedTime) }} {{ 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