diff --git a/src/views/consume/gold/coinConsumeDetail.vue b/src/views/consume/gold/coinConsumeDetail.vue index 90be922..83d316c 100644 --- a/src/views/consume/gold/coinConsumeDetail.vue +++ b/src/views/consume/gold/coinConsumeDetail.vue @@ -5,7 +5,6 @@ import request from '@/util/http.js' import API from '@/util/http.js' import moment from 'moment' import { reverseMarketMapping } from "@/utils/marketMap.js"; -import {hasMenuPermission, permissionMapping} from "@/utils/menuTreePermission.js"; import { storeToRefs } from 'pinia' import { useAdminStore } from '@/store/index.js' const adminStore = useAdminStore() @@ -153,15 +152,8 @@ const totalGoldSearch = ref({ goodsName: "" }) -const selectPermission = ref(false) -// 初始化权限状态 -const initPermissions = async() => { - if (!menuTree.value || !menuTree.value.length) return; - selectPermission.value = hasMenuPermission(menuTree.value, permissionMapping.gold_coin_consumption_details); -}; - /* ====================方法================================= */ @@ -183,10 +175,6 @@ const getAdminData = async function () { const ConsumeSelectBy = async function (val) { - if (!selectPermission) { - ElMessage.error('暂无权限') - return - } try { @@ -437,7 +425,6 @@ const handleCurrentChange = function (val) { // 计算总金币数 const sumGold = computed(() => permanentGolds.value + freeGolds.value + taskGolds.value) onMounted(async function () { - await initPermissions() await getAdminData() await ConsumeSelectBy() // getActivity();