From a414d2b003d7dc3131f2831f93f5cf4838471e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=A1=E5=A4=8D=E4=B9=A0?= <2353956224@qq.com> Date: Tue, 17 Mar 2026 10:30:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=83=E9=99=90=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/account.js | 4 ++++ src/components/PermissionMask.vue | 33 +++++++++++++++++++++++++++++-- 2 files changed, 35 insertions(+), 2 deletions(-) diff --git a/src/api/account.js b/src/api/account.js index 0edfba4..cf5cfc1 100644 --- a/src/api/account.js +++ b/src/api/account.js @@ -89,3 +89,7 @@ export function revenueStats(hostId) { export function getCustomServiceInfo() { return getAxios({ url: '/api/common/custom_service_info' }) } + +export function getCurrent() { + return getAxios({ url: '/api/user/current' }) +} diff --git a/src/components/PermissionMask.vue b/src/components/PermissionMask.vue index 31ec798..48ad210 100644 --- a/src/components/PermissionMask.vue +++ b/src/components/PermissionMask.vue @@ -16,7 +16,22 @@
-
+
+
@@ -67,10 +82,12 @@