diff --git a/src/main.ts b/src/main.ts
index 395ad7a..9bdfc24 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -3,19 +3,20 @@ import { useConfig } from "@/config";
import icon from "@/icon/index.ts";
import { createPinia } from "pinia";
import "virtual:uno.css";
-import 'vue-devui/tag/style.css';
+import "vue-devui/tag/style.css";
import App from "./App.vue";
import router from "./router";
-// 自定义主题配置 - 设置主色和二级色\
-import backTop from '@/components/backTop.vue';
-import 'md-editor-v3/lib/style.css';
+// 自定义主题配置 - 设置主色和二级色
+import backTop from "@/components/backTop.vue";
+import { formatTime } from "@/util";
+import "md-editor-v3/lib/style.css";
import "vfonts/FiraCode.css";
-import Tag from 'vue-devui/tag';
+import Tag from "vue-devui/tag";
+
const app = createApp(App);
-
-app.use(Tag)
+app.use(Tag);
app.use(createPinia());
app.use(router);
// app.use(VMdPreview)
@@ -25,4 +26,4 @@ for (const key in icon) {
app.component("icon-" + key, icon[key] as any);
}
app.component("back-top", backTop);
-app.mount("#app");
\ No newline at end of file
+app.mount("#app");
diff --git a/src/util/index.ts b/src/util/index.ts
index e56c2eb..c50e49d 100644
--- a/src/util/index.ts
+++ b/src/util/index.ts
@@ -98,7 +98,7 @@ export function deepclone
(obj: T): T {
* @example
* formatTimeBydate(new Date(), 'yyyy-MM-dd HH:mm:ss');
*/
-export function formatTimeBydate(this: Date, f: string): string | undefined {
+export function formatTimeBydate(this: string, f: string): string | undefined {
return formatTime(this, f);
}
diff --git a/src/views/Home.vue b/src/views/Home.vue
index 344e180..e677cd7 100644
--- a/src/views/Home.vue
+++ b/src/views/Home.vue
@@ -635,7 +635,6 @@ function handdleMenuItem(type: number) {
}
const navHeight: any = ref(0)
onMounted(() => {
- console.log("&&&&&&&&&&&&&&", nav.navH);
contentStyle.value = {
height: `${window.innerHeight - nav.navH}px)`
}
diff --git a/src/views/blog/[bid].vue b/src/views/blog/[bid].vue
index 3ffa37d..b254c52 100644
--- a/src/views/blog/[bid].vue
+++ b/src/views/blog/[bid].vue
@@ -1,12 +1,12 @@
-
+
-
+
{{ blogData.title }}
@@ -15,13 +15,13 @@
{{ item }}
-
+
{{ blogData.nickname }}
{{ formatTime(blogData.updated_at, "YYYY年MM月DD日hh时") }}
-
+
@@ -70,22 +70,75 @@ onMounted(() => {
+
+
\ No newline at end of file
+// :deep(.md-editor-catalog-link span):hover {
+// color: @primary;
+// }
\ No newline at end of file