From 3a39677bb31be089e23938a0392191b433efc399 Mon Sep 17 00:00:00 2001 From: chuzhongzai Date: Sun, 20 Sep 2026 22:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E4=BA=BA=E4=BF=A1=E6=81=AF=E4=B8=8E=E7=AD=9B?= =?UTF-8?q?=E9=80=89=EF=BC=88=E4=BB=85=E7=AE=A1=E7=90=86=E5=91=98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 详情抽屉显示下载人昵称,取不到时回退为 #id - 任务列表新增「下载人」筛选,选项从当前分类派生,切分类时清空 - 管理员判定改用后端下发的 isAdmin,不再硬编码 userId === 3 --- src/components/SettingsView.vue | 4 +-- src/components/TaskDetailSheet.vue | 9 ++++--- src/components/TaskView.vue | 28 +++++++++++++++++++++ src/store/index.js | 40 ++++++++++++++++++++++-------- src/styles/theme.css | 4 +++ 5 files changed, 68 insertions(+), 17 deletions(-) diff --git a/src/components/SettingsView.vue b/src/components/SettingsView.vue index 97c7f7f..abae45f 100644 --- a/src/components/SettingsView.vue +++ b/src/components/SettingsView.vue @@ -16,7 +16,7 @@ const galleryNameType = ref("shortName"); const realAuthCode = computed(() => store.state.AuthCode); const weekUsed = computed(() => store.state.weekUsed); -const isLion = computed(() => store.state.userId === 3); +const isAdmin = computed(() => store.state.isAdmin); const connectionText = computed(() => ({ connected: "已连接", @@ -137,7 +137,7 @@ onMounted(() => { 删除本地授权码 › -