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 @@