From 1d31284dba58482bd397b9fc3e397141e2ccc04c Mon Sep 17 00:00:00 2001 From: smallclover <18363998103@163.com> Date: Sat, 4 Oct 2025 09:13:34 +0900 Subject: [PATCH 1/2] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E7=BD=AE=E9=A1=B6?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E4=B8=8D=E6=98=BE=E7=A4=BA=202.=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E5=8F=96=E6=B6=88=E7=BD=AE=E9=A1=B6=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend_nuxt/pages/posts/[id]/index.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend_nuxt/pages/posts/[id]/index.vue b/frontend_nuxt/pages/posts/[id]/index.vue index cbd70f071..8fd467b82 100644 --- a/frontend_nuxt/pages/posts/[id]/index.vue +++ b/frontend_nuxt/pages/posts/[id]/index.vue @@ -366,7 +366,11 @@ const changeLogIcon = (l) => { return 'unlock' } } else if (l.type === 'PINNED') { - return 'pin-icon' + if(l.newPinnedAt){ + return 'pin' + }else{ + return 'clear-icon' + } } else if (l.type === 'FEATURED') { if (l.newFeatured) { return 'star' From a83ddc40fe2949cbc94272e827914ff3f9e16fc1 Mon Sep 17 00:00:00 2001 From: Tim <135014430+nagisa77@users.noreply.github.com> Date: Sat, 4 Oct 2025 12:46:19 +0800 Subject: [PATCH 2/2] Update CONTRIBUTING.md --- CONTRIBUTING.md | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ceca93510..f003d5708 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -124,25 +124,7 @@ IDEA 打开 `backend/` 文件夹。 ![运行画面](assets/contributing/backend_img_4.png) -## 启动前端服务 - -> [!IMPORTANT] -> **⚠️ 环境要求:Node.js 版本最低 20.0.0(因为 Nuxt 框架要求)** - -```shell -cd frontend_nuxt/ -``` - -安装依赖并启动开发服务器: - -```shell -npm install --verbose -npm run dev -``` - -默认情况下,浏览器访问 http://127.0.0.1:3000 即可访问前端页面。 - -### 连接预发或正式环境 +## 前端连接预发或正式环境 前端默认读取 `.env` 中的接口地址,可通过修改以下变量快速切换到预发或正式环境: @@ -154,7 +136,6 @@ npm run dev ``` 将 `staging` 替换为 `www` 即可连接正式环境。其他变量(如 OAuth Client ID、站点地址等)可根据需求调整。 -2. 已经存在 `.env` 时,可直接编辑上述变量并重启 `npm run dev` 让配置生效。 ## 其他配置