forked from integrated_whb/integrated_whb_vue
17 lines
431 B
JavaScript
17 lines
431 B
JavaScript
|
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,
|
||
|
};
|
||
|
};
|