From b73748c084545955018bc27b0d439413caf2502f Mon Sep 17 00:00:00 2001 From: Astrian Zheng Date: Sat, 24 May 2025 13:39:53 +1000 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=B8=93=E8=BE=91?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E5=B9=B6=E8=B0=83=E6=95=B4=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E5=92=8C=E5=AF=BC=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增 AlbumDetail.vue 页面,用于展示专辑详情。调整 Home.vue 中的路由链接,将 `/album` 改为 `/albums`。在 main.ts 中添加新的路由配置 `/albums/:id`。移除 remixicon 依赖,并优化 App.vue 中的导航栏逻辑,添加返回按钮。 --- package-lock.json | 7 ------ package.json | 1 - src/App.vue | 52 ++++++++++++++++++++++++--------------- src/main.ts | 5 ++-- src/pages/AlbumDetail.vue | 3 +++ src/pages/Home.vue | 2 +- 6 files changed, 39 insertions(+), 31 deletions(-) create mode 100644 src/pages/AlbumDetail.vue diff --git a/package-lock.json b/package-lock.json index 8410092..cd18b9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "dependencies": { "@tailwindcss/vite": "^4.1.7", "axios": "^1.9.0", - "remixicon": "^4.6.0", "tailwindcss": "^4.1.7", "vue": "^3.5.13", "vue-router": "^4.5.1" @@ -2254,12 +2253,6 @@ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==", "license": "MIT" }, - "node_modules/remixicon": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/remixicon/-/remixicon-4.6.0.tgz", - "integrity": "sha512-bKM5odjqE1yzVxEZGJE7F79WHhNrJFIKHXR+GG+P1IWXn8AnJZhl8SbIRDJsNAvIqx4VPkNwjuHfc42tutMDpQ==", - "license": "Apache-2.0" - }, "node_modules/rollup": { "version": "4.41.0", "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.41.0.tgz", diff --git a/package.json b/package.json index 88a2983..83df4a4 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "dependencies": { "@tailwindcss/vite": "^4.1.7", "axios": "^1.9.0", - "remixicon": "^4.6.0", "tailwindcss": "^4.1.7", "vue": "^3.5.13", "vue-router": "^4.5.1" diff --git a/src/App.vue b/src/App.vue index 4c8ccd8..9337f7c 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,27 +9,39 @@ const route = useRoute()