Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Germey committed Dec 31, 2023
1 parent c56ab79 commit bd3921b
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 6 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@types/mustache": "^4.2.2",
"@types/qs": "^6.9.9",
"@types/uuid": "^8.3.4",
"@zhishuyun/data": "^0.1.0",
"axios": "^0.22.0",
"codemirror": "^6.0.1",
"copy-to-clipboard": "^3.3.3",
Expand Down Expand Up @@ -80,6 +81,7 @@
"sass": "^1.38.1",
"tailwindcss": "^2.2.8",
"typescript": "^4.6.3",
"unplugin-vue-components": "^0.26.0",
"vite": "^2.9.0",
"vue-tsc": "^1.2.0"
}
Expand Down
2 changes: 2 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ import { vLoading } from 'element-plus';
import hl from 'highlight.js';
import 'highlight.js/styles/night-owl.css';
import copyToClipboard from 'copy-to-clipboard';
import ElementPlus from 'element-plus';

console.debug('start to create app');
const app = createApp(App);

app.use(router);
app.use(store);
app.use(i18n);
app.use(ElementPlus);
app.use(dayjs, {
formatString: 'YYYY-MM-DD HH:mm:ss'
});
Expand Down
7 changes: 4 additions & 3 deletions src/pages/chat/Conversation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
@refresh="$store.dispatch('chat/getApplications')"
/>
<div class="dialogue">
<introduction v-if="messages && messages.length === 0" />
<div v-else class="messages">
<div class="messages">
<message v-for="(message, messageIndex) in messages" :key="messageIndex" :message="message" class="message" />
</div>
</div>
Expand Down Expand Up @@ -47,6 +46,7 @@ import ApiStatus from '@/components/common/ApiStatus.vue';
import { ROUTE_CHAT_CONVERSATION, ROUTE_CHAT_CONVERSATION_NEW } from '@/router';
import { Status } from '@/store/common/models';
import { log } from '@/utils/log';
import { ComponentCommonHelpEntry as HelpEntry } from '@zhishuyun/data';
export interface IData {
question: string;
Expand All @@ -60,7 +60,8 @@ export default defineComponent({
InputBox,
ModelSelector,
Message,
ApiStatus
ApiStatus,
HelpEntry
},
data(): IData {
return {
Expand Down
Loading

0 comments on commit bd3921b

Please sign in to comment.