diff --git a/components/i/Create.vue b/components/i/Create.vue
index e11755776d34e86a89b3e19417d92cdfe6faec2e..8a27a07f74302712a9d3d3e643e2e324d861c9af 100644
--- a/components/i/Create.vue
+++ b/components/i/Create.vue
@@ -37,6 +37,7 @@
diff --git a/components/prose/ProsePre.global.vue b/components/prose/ProsePre.global.vue
index d0d747e9c1500c2b12ff760fc34c28e56dbf6282..42208f1aaf2169479cde220112e4dd28f26de140 100644
--- a/components/prose/ProsePre.global.vue
+++ b/components/prose/ProsePre.global.vue
@@ -63,7 +63,7 @@ const codeBlock = ref(null)
const handleRender = () => {
const language = props.language || 'html'
const lang = language.startsWith('vue') ? 'html' : language
- codeBlock.value = hljs.highlight(lang, props.code, true).value
+ codeBlock.value = hljs.highlight(props.code, { language: lang }).value
}
watch(()=> props.code, () => {
handleRender();
diff --git a/pages/library.vue b/pages/library.vue
new file mode 100644
index 0000000000000000000000000000000000000000..1a8757ef85109f23273cb52fbc39583f57d41c7d
--- /dev/null
+++ b/pages/library.vue
@@ -0,0 +1,3 @@
+
+ to be done
+
\ No newline at end of file
diff --git a/stores/search.js b/stores/search.js
new file mode 100644
index 0000000000000000000000000000000000000000..c7acc12c2c4f44f0f760c8fac27911aeb00eaa6c
--- /dev/null
+++ b/stores/search.js
@@ -0,0 +1,12 @@
+import { defineStore } from 'pinia'
+
+export const useSearchStore = defineStore('search', () => {
+ const { $isSignIn } = useUserStore()
+ const $searchHistory = ref([])
+ async function $getSearchHistory () {
+ if (!$isSignIn) return
+ const { data } = await useRequest('/v1/chat/completion/list')
+ $searchHistory.value = data.value.data
+ }
+ return { $searchHistory, $getSearchHistory }
+})