From 73bcc8281fff647048e09cf7aea9b8c47f17789c Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Sat, 22 Nov 2025 10:59:57 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=A1=B5=E9=9D=A2=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/verify/detail/index.vue | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/pages/verify/detail/index.vue b/pages/verify/detail/index.vue
index b12518f..82c0f3a 100644
--- a/pages/verify/detail/index.vue
+++ b/pages/verify/detail/index.vue
@@ -15,12 +15,12 @@
任务类型
-
+
@@ -127,7 +127,7 @@
-
+
通过
@@ -143,6 +143,15 @@ import { ref, computed, onMounted } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { getVerifyDetail, handleVerify } from '@/api/verify'
import { getDictLabel } from '@/utils/dict'
+import {useUserStore} from "@/store/user";
+import {storeToRefs} from "pinia";
+
+const userStore = useUserStore()
+const { userInfo } = storeToRefs(userStore)
+
+const showPrivateSwitch = computed(() =>
+ userInfo.value?.roles?.some(r => ['admin', 'sys_admin'].includes(r))
+)
// 页面参数
const verifyId = ref('')