feat: 支付商户

This commit is contained in:
luo
2026-09-10 16:50:06 +08:00
parent ef966171b4
commit d3d257cdf8
21 changed files with 2884 additions and 27 deletions

View File

@@ -1,4 +1,4 @@
/**
/**
* 权限检查 Composable
* 用于在模板或脚本中检查用户权限
*/
@@ -18,6 +18,9 @@ export function usePermission() {
// 是否是超级管理员
const isSuperAdmin = computed(() => userStore.isSuperAdmin)
// 是否是超级管理员或平台用户
const isPlatformAccount = computed(() => [1, 2].includes(Number(userStore.info.user_type)))
/**
* 检查是否有指定权限
* @param permission 权限码
@@ -76,6 +79,7 @@ export function usePermission() {
permissions,
buttons,
isSuperAdmin,
isPlatformAccount,
hasPermission,
hasAnyPermission,
hasAllPermissions,
@@ -84,3 +88,4 @@ export function usePermission() {
hasButton
}
}