adtec-core-package 0.6.7 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adtec-core-package",
3
- "version": "0.6.7",
3
+ "version": "0.6.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -0,0 +1,21 @@
1
+ import { permissionStore } from '../stores/permissionStore.ts'
2
+
3
+ /**
4
+ * Create by丁盼
5
+ * 说明: 权限工具Hooks.ts
6
+ * 创建时间: 2025/2/14 11:36
7
+ * 修改时间: 2025/2/14 11:36
8
+ */
9
+ export default function usePermissionToolHooks() {
10
+ const permission = permissionStore()
11
+
12
+ /**
13
+ * 判断是否有操作权限
14
+ * @param operCode
15
+ * @constructor
16
+ */
17
+ const IsOperationAuth = (operCode: string) => {
18
+ return permission.IsOperationAuth(operCode)
19
+ }
20
+ return { IsOperationAuth }
21
+ }