|
@@ -1,8 +1,8 @@
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { onMounted, nextTick } from 'vue';
|
|
import { onMounted, nextTick } from 'vue';
|
|
|
-import { useUserStore } from '../stores/user';
|
|
|
|
|
|
|
+
|
|
|
import { useChatStore } from '../stores/chat';
|
|
import { useChatStore } from '../stores/chat';
|
|
|
-import { useRouter } from 'vue-router';
|
|
|
|
|
|
|
+
|
|
|
import Header from '../components/Header.vue';
|
|
import Header from '../components/Header.vue';
|
|
|
import ChatInput from '../components/ChatInput.vue';
|
|
import ChatInput from '../components/ChatInput.vue';
|
|
|
import { watch } from 'vue';
|
|
import { watch } from 'vue';
|
|
@@ -10,9 +10,9 @@ import { marked } from 'marked';
|
|
|
import hljs from 'highlight.js';
|
|
import hljs from 'highlight.js';
|
|
|
import { markedHighlight } from 'marked-highlight';
|
|
import { markedHighlight } from 'marked-highlight';
|
|
|
|
|
|
|
|
-const userStore = useUserStore();
|
|
|
|
|
|
|
+
|
|
|
const chatStore = useChatStore();
|
|
const chatStore = useChatStore();
|
|
|
-const router = useRouter();
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
// 配置标记以获得更好的呈现
|
|
// 配置标记以获得更好的呈现
|
|
|
|
|
|