diff --git a/src/views/history/newHistory.vue b/src/views/history/newHistory.vue index 364fc75..a0626fa 100644 --- a/src/views/history/newHistory.vue +++ b/src/views/history/newHistory.vue @@ -56,7 +56,7 @@ const defaultTime = [ new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59), ] -const canLook = ref(hasMenuPermission(menuTree.value, permissionMapping.new_version_gold_query)) +const canLook = ref(findMenuById(menuTree.value, permissionMapping.new_version_gold_query)) const tableData = ref([]) const dateRange = ref([]) const searchObj = ref({ diff --git a/src/views/history/oldHistory.vue b/src/views/history/oldHistory.vue index 85477a6..ed34232 100644 --- a/src/views/history/oldHistory.vue +++ b/src/views/history/oldHistory.vue @@ -52,7 +52,7 @@ const defaultTime = [ new Date(2000, 1, 1, 0, 0, 0), new Date(2000, 2, 1, 23, 59, 59), ] -const canLook = ref(hasMenuPermission(menuTree.value, permissionMapping.old_version_gold_query)) +const canLook = ref(findMenuById(menuTree.value, permissionMapping.old_version_gold_query)) const tableData = ref([]) const dateRange = ref([]) const searchObj = ref({