完成了 BOM 管理和生产管理,完成部分发料单、采购计划和调拨单。
This commit is contained in:
21
src/composables/use-auth-button.ts
Normal file
21
src/composables/use-auth-button.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
// import { useUserStore } from "@/pinia";
|
||||
|
||||
export const useAuth = () => {
|
||||
// const buttonAuths = useUserStore().buttonAuth;
|
||||
|
||||
/**
|
||||
*
|
||||
* @param authCode 判断按钮是否有权限
|
||||
* @returns
|
||||
*/
|
||||
// const hasAuthButton = (authCode: string): boolean => buttonAuths.has(authCode);
|
||||
|
||||
const hasAuthButton = (authCode: string): boolean => {
|
||||
console.log(authCode);
|
||||
return true;
|
||||
};
|
||||
|
||||
return {
|
||||
hasAuthButton,
|
||||
};
|
||||
};
|
||||
Reference in New Issue
Block a user