@yqg/permission 1.2.0 → 1.2.1

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.
@@ -1,4 +1,4 @@
1
- import { F as Ce, i as Nn, C as mu, T as hs, p as Oe, c as P, a as ue, r as z, d as j, u as J, s as Y, w as V, g as Ho, b as je, o as Fe, t as Qu, e as v, h as Ft, f as kn, j as wu, k as At, l as xe, m as vs, n as Lt, q as Pe, v as To, x as CA, y as yu, z as Mo, A as ri, B as bu, D as Is, E as ms, G as Ne, H as Qs, I as Pu, J as Du, K as lt, L as Ai, M as ct, N as ge, O as Su, P as ln, Q as Ou, R as Ze, S as Jn, U as nr, V as xu } from "./index-BAGvIeoy.js";
1
+ import { F as Ce, i as Nn, C as mu, T as hs, p as Oe, c as P, a as ue, r as z, d as j, u as J, s as Y, w as V, g as Ho, b as je, o as Fe, t as Qu, e as v, h as Ft, f as kn, j as wu, k as At, l as xe, m as vs, n as Lt, q as Pe, v as To, x as CA, y as yu, z as Mo, A as ri, B as bu, D as Is, E as ms, G as Ne, H as Qs, I as Pu, J as Du, K as lt, L as Ai, M as ct, N as ge, O as Su, P as ln, Q as Ou, R as Ze, S as Jn, U as nr, V as xu } from "./index-DKDl-l25.js";
2
2
  function In(e) {
3
3
  "@babel/helpers - typeof";
4
4
  return In = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -14627,7 +14627,7 @@ const E0 = { class: "crane-wraper" }, h0 = ["src"], v0 = ["src"], I0 = { class:
14627
14627
  CUSTOM: "custom"
14628
14628
  };
14629
14629
  Xe.config({ prefixCls: "yqg-permission-message" });
14630
- const r = xu(() => import("./apply-modal-BBqMmKS2.js").then((m) => m.b)), A = t, i = e, a = z(!1), s = z();
14630
+ const r = xu(() => import("./apply-modal-COwJCSGK.js").then((m) => m.b)), A = t, i = e, a = z(!1), s = z();
14631
14631
  let l = z([]), c = z({
14632
14632
  imageUrl: ro,
14633
14633
  status: ""
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yqg/permission",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "type": "module",
@@ -131,7 +131,7 @@
131
131
  L3: 'SEVEN_DAYS',
132
132
  };
133
133
  const { relatedDepartmentIds = [], curDepartmentId = 0, securityLevel } = item;
134
- if (relatedDepartmentIds.includes(curDepartmentId as number)) {
134
+ if (relatedDepartmentIds?.includes(curDepartmentId as number)) {
135
135
  item.validTime = 'NINETY_DAYS';
136
136
  } else {
137
137
  item.validTime = validMap[securityLevel];
@@ -15,12 +15,12 @@ declare type PermissionType = {
15
15
  name: string;
16
16
  roleId: number;
17
17
  desc: string;
18
- businessCode: string;
19
- feature: string;
18
+ businessCode: string;
19
+ feature: string;
20
20
  validTime?: string;
21
- operationType: string;
22
- securityLevel: LevelType;
23
- relatedDepartments?: any[];
21
+ operationType: string;
22
+ securityLevel: LevelType;
23
+ relatedDepartments?: any[];
24
24
  relatedCompleteNames: string[];
25
25
  relatedDepartmentIds?: number[];
26
26
  curDepartmentId?: number;