From 4704fe81e9264835cc8c1a0aa51d7ccb1430735d Mon Sep 17 00:00:00 2001 From: youzi <2410633923@qq.com> Date: Tue, 27 Jan 2026 14:51:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0AI=E6=91=98=E8=A6=81?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=B9=B6=E4=BC=98=E5=8C=96=E5=8D=9A=E5=AE=A2?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 1 - components.d.ts | 4 ++ package.json | 4 +- src/icon/star.svg | 3 + src/views/blog/[bid].vue | 119 ++++++++++++++++++++++++++++++++------- tsconfig.app.json | 1 + tsconfig.node.json | 3 +- yarn.lock | 8 +-- 8 files changed, 114 insertions(+), 29 deletions(-) create mode 100644 src/icon/star.svg diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 2d4643f..36b6df4 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -70,7 +70,6 @@ declare global { const useCssVars: typeof import('vue')['useCssVars'] const useDialog: typeof import('naive-ui')['useDialog'] const useId: typeof import('vue')['useId'] - const useLink: typeof import('vue-router')['useLink'] const useLoadingBar: typeof import('naive-ui')['useLoadingBar'] const useMessage: typeof import('naive-ui')['useMessage'] const useModel: typeof import('vue')['useModel'] diff --git a/components.d.ts b/components.d.ts index faf267b..039b34b 100644 --- a/components.d.ts +++ b/components.d.ts @@ -17,8 +17,12 @@ declare module 'vue' { Mask: typeof import('./src/components/mask.vue')['default'] MenuH: typeof import('./src/components/menuH.vue')['default'] NAvatar: typeof import('naive-ui')['NAvatar'] + NBreadcrumb: typeof import('naive-ui')['NBreadcrumb'] + NBreadcrumbItem: typeof import('naive-ui')['NBreadcrumbItem'] NButton: typeof import('naive-ui')['NButton'] NCard: typeof import('naive-ui')['NCard'] + NCollapse: typeof import('naive-ui')['NCollapse'] + NCollapseItem: typeof import('naive-ui')['NCollapseItem'] NConfigProvider: typeof import('naive-ui')['NConfigProvider'] NDialogProvider: typeof import('naive-ui')['NDialogProvider'] NDropdown: typeof import('naive-ui')['NDropdown'] diff --git a/package.json b/package.json index 8e57695..6bef901 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "scripts": { "dev": "vite", - "build": "run-p type-check \"build-only {@}\" --", + "b": "run-p type-check \"build-only {@}\" --", "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build" @@ -41,7 +41,7 @@ "naive-ui": "^2.43.2", "npm-run-all2": "^8.0.4", "nprogress": "^0.2.0", - "typescript": "~5.8.0", + "typescript": "^5.9.3", "vfonts": "^0.0.3", "vite": "^7.0.6", "vite-plugin-vue-devtools": "^8.0.0", diff --git a/src/icon/star.svg b/src/icon/star.svg new file mode 100644 index 0000000..ad46148 --- /dev/null +++ b/src/icon/star.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/views/blog/[bid].vue b/src/views/blog/[bid].vue index b254c52..e4a1e42 100644 --- a/src/views/blog/[bid].vue +++ b/src/views/blog/[bid].vue @@ -6,20 +6,56 @@ -
-
-
{{ blogData.title }}
-
+
+ + + 文章 + + + {{ blogData.title }} + + +
+ +
+ + + + + +
+ {{ msg.replaceAll('\\n', '
') }} +
+
+
+
+ +
+ + {{ blogData.nickname }} + {{ formatTime(blogData.updated_at, "YYYY年MM月DD日hh时") }} +
+ +
{{ item }}
-
- - {{ blogData.nickname }} - {{ formatTime(blogData.updated_at, "YYYY年MM月DD日hh时") }} -
+
@@ -28,17 +64,6 @@