提交
This commit is contained in:
1 parent
0b50eff3d8
commit
ee364e24aa
323 files changed
+57731
-35766
No files matched your search
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user