杂务:新增声明级注释覆盖率
This commit is contained in:
@@ -96,6 +96,10 @@ import {
|
||||
loadCachedAdminUserInfo
|
||||
} from './admin-helpers'
|
||||
|
||||
/**
|
||||
* Purpose: router supports ProfileView.vue by holding or executing the router page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const router = useRouter()
|
||||
const { userPermissions, loadUserPermissions, clearPermissions } = usePermission()
|
||||
|
||||
@@ -108,6 +112,10 @@ const shopSwitchLoading = ref(false)
|
||||
|
||||
/** currentShopName is a reactive state variable used by the template and event handlers. */
|
||||
const currentShopName = computed(() => getAdminCurrentShopName(userInfo.value))
|
||||
/**
|
||||
* Purpose: isPlatformOverview supports ProfileView.vue by holding or executing the is platform overview page or API role.
|
||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||
*/
|
||||
const isPlatformOverview = computed(() => isBootstrapAdminUser(userInfo.value))
|
||||
/** roleLabel is a reactive state variable used by the template and event handlers. */
|
||||
const roleLabel = computed(() => getAdminRoleLabel(userInfo.value?.type))
|
||||
|
||||
Reference in New Issue
Block a user