import { post } from "@/request/axios"; // 按钮权限 export const useButtonJurisdiction = async (type) => { const keys = `${type}:add,${type}:del,${type}:edit,toExcel`; const resData = await post("/api/head/hasButton", { loading: false, keys, }); return { add: resData[`${type}fhadminadd`], del: resData[`${type}fhadmindel`], edit: resData[`${type}fhadminedit`], excel: resData.toExcel, }; };