This commit is contained in:
zlwu committed 2026-06-26 00:50:04 +08:00
1 parent 0b50eff3d8
commit ee364e24aa
323 files changed
+57731 -35766

No files matched your search

+5 -1
View File
@@ -9,6 +9,7 @@ import { storeToRefs } from 'pinia'
import { useUserStore } from '@/store/modules/user'
export const MY_QC_MATERIAL_USAGE_VIEW_AMOUNT_PERM = 'biz:myQcMaterialUsage:viewAmount'
export const QC_MATERIAL_VIEW_AMOUNT_PERM = 'biz:qcMaterial:viewAmount'
export function useMenuPerm() {
const userStore = useUserStore()
@@ -25,8 +26,11 @@ export function useMenuPerm() {
hasMenuPerm(MY_QC_MATERIAL_USAGE_VIEW_AMOUNT_PERM)
)
const hasQcMaterialViewAmount = computed(() => hasMenuPerm(QC_MATERIAL_VIEW_AMOUNT_PERM))
return {
hasMenuPerm,
hasMyQcMaterialUsageViewAmount
hasMyQcMaterialUsageViewAmount,
hasQcMaterialViewAmount
}
}