feat: assistant templates startup
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import type {PropType} from "vue";
|
||||
import type {ChatMessage} from "~/typings/llm";
|
||||
import MessageResponding from "~/components/Icon/MessageResponding.vue";
|
||||
import type {PropType} from 'vue'
|
||||
import type {ChatMessage} from '~/typings/llm'
|
||||
import MessageResponding from '~/components/Icon/MessageResponding.vue'
|
||||
|
||||
const props = defineProps({
|
||||
message: {
|
||||
type: Object as PropType<ChatMessage>,
|
||||
required: true,
|
||||
}
|
||||
},
|
||||
})
|
||||
|
||||
const dayjs = useDayjs()
|
||||
@@ -59,7 +59,10 @@ const message_background = computed(() => {
|
||||
</span>
|
||||
</div>
|
||||
</Transition>
|
||||
<div v-if="message.create_at" class="chat-inside-extra">
|
||||
<div v-if="message.preset" class="chat-inside-extra">
|
||||
预设消息
|
||||
</div>
|
||||
<div v-else-if="message.create_at" class="chat-inside-extra">
|
||||
{{ dayjs(message.create_at * 1000).format('YYYY-MM-DD HH:mm:ss') }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user