@skyfox2000/webui 1.5.22 → 1.6.0
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/lib/assets/modules/{baseLayout-BbWv6Njy.js → baseLayout-DDSJt-x4.js} +3 -3
- package/lib/assets/modules/{file-upload-czkP0_KZ.js → file-upload-Cf_l5UkO.js} +1 -1
- package/lib/assets/modules/{index-BM6-4CHA.js → index-D1xNOLT_.js} +2 -2
- package/lib/assets/modules/{index-CnrS4kfC.js → index-DrXeG06w.js} +2 -2
- package/lib/assets/modules/{index-D62pvKsu.js → index-cop45Etu.js} +1 -1
- package/lib/assets/modules/{menuTabs-DA2V4Fdt.js → menuTabs-Bmgx084v.js} +2 -2
- package/lib/assets/modules/{toolIcon-BPUk821a.js → toolIcon-CFsCkPLp.js} +1 -1
- package/lib/assets/modules/{upload-template-1qHFUTUu.js → upload-template-JsmaDweb.js} +567 -562
- package/lib/assets/modules/{uploadList-BVcO1MPp.js → uploadList-B-Acsazt.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/webui.es.js +67 -65
- package/package.json +1 -1
- package/src/directives/permission.ts +4 -1
- package/src/router/index.ts +4 -1
- package/src/stores/appInfo.ts +8 -3
- package/src/stores/userInfo.ts +7 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ce, ref as R, computed as I, watch as $, resolveDirective as de, createElementBlock as m, openBlock as d, normalizeClass as z, unref as n, createElementVNode as w, withDirectives as b, createCommentVNode as y, createBlock as V, mergeProps as G, withCtx as v, createVNode as p, createTextVNode as E, toDisplayString as P, Fragment as pe, renderList as me } from "vue";
|
|
2
|
-
import { _ as H } from "./index-
|
|
3
|
-
import { a as B, _ as K } from "./toolIcon-
|
|
2
|
+
import { _ as H } from "./index-cop45Etu.js";
|
|
3
|
+
import { a as B, _ as K } from "./toolIcon-CFsCkPLp.js";
|
|
4
4
|
import { httpPost as N, ResStatus as j } from "@skyfox2000/fapi";
|
|
5
|
-
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-
|
|
5
|
+
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-JsmaDweb.js";
|
|
6
6
|
import U from "vue-m-message";
|
|
7
7
|
import { Upload as J, Tag as we, Popconfirm as ve, Progress as xe } from "ant-design-vue";
|
|
8
|
-
import { U as r, f as be, p as W } from "./file-upload-
|
|
8
|
+
import { U as r, f as be, p as W } from "./file-upload-Cf_l5UkO.js";
|
|
9
9
|
import { combineParams as Z } from "@skyfox2000/microbase";
|
|
10
10
|
import "async-validator";
|
|
11
11
|
import "dayjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as V, defineAsyncComponent as J, ref as m, watch as K, onMounted as W, createElementBlock as x, openBlock as p, Fragment as z, createElementVNode as f, createVNode as N, toDisplayString as $, unref as l, createBlock as A, withKeys as v, normalizeClass as O, withModifiers as w, withCtx as L, createCommentVNode as q } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { _ as D } from "../../assets/modules/toolIcon-
|
|
3
|
+
import { _ as D } from "../../assets/modules/toolIcon-CFsCkPLp.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { $ as b } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as b } from "../../assets/modules/upload-template-JsmaDweb.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { _ as Q } from "../../assets/modules/index-
|
|
7
|
+
import { _ as Q } from "../../assets/modules/index-D1xNOLT_.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/baseLayout-
|
|
3
|
-
import { al as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-DDSJt-x4.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-JsmaDweb.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import b from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as n, openBlock as p, unref as r, withCtx as e, createVNode as m, createTextVNode as c, toDisplayString as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-JsmaDweb.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as n, openBlock as p, unref as e, withCtx as r, createVNode as m, createTextVNode as a, toDisplayString as c } from "vue";
|
|
2
|
-
import { r as u } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as u } from "../../assets/modules/upload-template-JsmaDweb.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as be, ref as p, computed as S, watch as H, onMounted as he, createBlock as Q, openBlock as f, unref as r, withCtx as D, renderSlot as W, createElementBlock as g, createCommentVNode as B, createElementVNode as b, createVNode as _, createTextVNode as J, toDisplayString as E, normalizeClass as Fe, Fragment as ie, renderList as ne } from "vue";
|
|
2
|
-
import { _ as Y } from "../../assets/modules/index-
|
|
2
|
+
import { _ as Y } from "../../assets/modules/index-cop45Etu.js";
|
|
3
3
|
import { Modal as Ce, Upload as ce, Space as Ue } from "ant-design-vue";
|
|
4
4
|
import { httpGet as _e, ResStatus as de } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-JsmaDweb.js";
|
|
6
6
|
import m from "vue-m-message";
|
|
7
|
-
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-
|
|
8
|
-
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-
|
|
7
|
+
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-DrXeG06w.js";
|
|
8
|
+
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-Cf_l5UkO.js";
|
|
9
9
|
import "@skyfox2000/microbase";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
|
|
2
|
-
import { _ as y } from "../../assets/modules/baseLayout-
|
|
3
|
-
import { al as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as y } from "../../assets/modules/baseLayout-DDSJt-x4.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-JsmaDweb.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import k from "vue-m-message";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as T, ref as l, watch as x, onMounted as F, createBlock as C, openBlock as q, unref as u, withCtx as d, createVNode as f, createTextVNode as L, toDisplayString as b } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-cop45Etu.js";
|
|
3
3
|
import { Modal as D, Space as z } from "ant-design-vue";
|
|
4
4
|
import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
|
|
5
|
-
import { ao as n, $ as w } from "../../assets/modules/upload-template-
|
|
5
|
+
import { ao as n, $ as w } from "../../assets/modules/upload-template-JsmaDweb.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { U as M } from "../../assets/modules/file-upload-
|
|
7
|
+
import { U as M } from "../../assets/modules/file-upload-Cf_l5UkO.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as $ } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as $ } from "../../assets/modules/uploadList-B-Acsazt.js";
|
|
13
13
|
const H = /* @__PURE__ */ T({
|
|
14
14
|
__name: "templateFile",
|
|
15
15
|
props: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as F, ref as s, watch as y, onMounted as z, createBlock as D, openBlock as _, unref as u, withCtx as p, createVNode as m, mergeProps as L, createTextVNode as w, toDisplayString as C } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-cop45Etu.js";
|
|
3
3
|
import { Modal as k, Space as N } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as T } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as v, ab as $ } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as v, ab as $ } from "../../assets/modules/upload-template-JsmaDweb.js";
|
|
6
6
|
import A from "vue-m-message";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { A as E } from "../../assets/modules/file-upload-
|
|
10
|
+
import { A as E } from "../../assets/modules/file-upload-Cf_l5UkO.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as B } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as B } from "../../assets/modules/uploadList-B-Acsazt.js";
|
|
13
13
|
const W = /* @__PURE__ */ F({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
package/lib/webui.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { u as
|
|
2
|
-
import { ah as Vr, V as Yr, W as Gr, a0 as Wr, ag as Hr, ae as qr, af as Qr, ai as Jr, as as Xr, a3 as Zr, Y as eo, at as to, ac as ao, a8 as lo, T as ro, a9 as oo, ab as so, aq as no, ar as io, Z as co, K as uo, J as po, a5 as fo, aa as vo, ad as mo, U as go, X as ho, aj as bo, I as xo, a7 as yo, ak as wo, a2 as ko, a4 as _o, au as Co, a1 as So, ap as To, ao as $o, al as Do, N as Fo, Q as Po, am as Io, S as Eo, an as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-
|
|
3
|
-
import { f as Yt, p as
|
|
4
|
-
import { A as Ro, U as Bo } from "./assets/modules/file-upload-
|
|
5
|
-
import { EnvConfig as
|
|
6
|
-
import { FrontCache as he, httpPost as
|
|
1
|
+
import { u as Ae, i as ve, $ as y, a as ze, L as $t, c as Dt, P as oe, o as Qe, b as Ft, d as Pt, e as Je, g as Xe, r as fe, f as Ze, h as et, j as tt, k as It, l as be, m as at, _ as lt, n as rt, O as Oe, p as Et, q as ot, s as Lt, t as Ut, v as te, w as Mt, x as Nt, y as Rt, z as Bt, A as At, B as zt, C as se, D as Ot, E as de, F as Kt, G as jt, H as st, M as Vt } from "./assets/modules/upload-template-JsmaDweb.js";
|
|
2
|
+
import { ah as Vr, V as Yr, W as Gr, a0 as Wr, ag as Hr, ae as qr, af as Qr, ai as Jr, as as Xr, a3 as Zr, Y as eo, at as to, ac as ao, a8 as lo, T as ro, a9 as oo, ab as so, aq as no, ar as io, Z as co, K as uo, J as po, a5 as fo, aa as vo, ad as mo, U as go, X as ho, aj as bo, I as xo, a7 as yo, ak as wo, a2 as ko, a4 as _o, au as Co, a1 as So, ap as To, ao as $o, al as Do, N as Fo, Q as Po, am as Io, S as Eo, an as Lo, R as Uo, a6 as Mo } from "./assets/modules/upload-template-JsmaDweb.js";
|
|
3
|
+
import { f as Yt, p as Ye } from "./assets/modules/file-upload-Cf_l5UkO.js";
|
|
4
|
+
import { A as Ro, U as Bo } from "./assets/modules/file-upload-Cf_l5UkO.js";
|
|
5
|
+
import { EnvConfig as Ee, isMicroApp as Gt } from "@skyfox2000/microbase";
|
|
6
|
+
import { FrontCache as he, httpPost as Ke, ResStatus as je, SERVER_HOST as Wt, fieldMapping as xe } from "@skyfox2000/fapi";
|
|
7
7
|
import ae from "vue-m-message";
|
|
8
|
-
import { defineComponent as L, createBlock as k, openBlock as u, withModifiers as ge, unref as l, useAttrs as ne, withCtx as w, createElementVNode as I, createVNode as D, mergeProps as N, renderSlot as O, normalizeClass as R, toDisplayString as E, createCommentVNode as S, ref as T, provide as Ce, watch as M, onMounted as le, createTextVNode as G, inject as ye, resolveDirective as ie, withDirectives as Q, computed as j, createElementBlock as x, normalizeStyle as
|
|
8
|
+
import { defineComponent as L, createBlock as k, openBlock as u, withModifiers as ge, unref as l, useAttrs as ne, withCtx as w, createElementVNode as I, createVNode as D, mergeProps as N, renderSlot as O, normalizeClass as R, toDisplayString as E, createCommentVNode as S, ref as T, provide as Ce, watch as M, onMounted as le, createTextVNode as G, inject as ye, resolveDirective as ie, withDirectives as Q, computed as j, createElementBlock as x, normalizeStyle as Ve, Fragment as U, renderList as V, resolveDynamicComponent as nt, onActivated as Se, createSlots as it, useSlots as Ht, vShow as Le, shallowRef as qt, onUnmounted as Qt, withKeys as Ge } from "vue";
|
|
9
9
|
import "async-validator";
|
|
10
|
-
import
|
|
11
|
-
import { Popover as Jt, theme as ct, Drawer as Xt, Space as pe, Form as ut, message as Zt, FormItem as dt, ConfigProvider as we, Popconfirm as pt, DropdownButton as ft, Menu as Te, MenuItem as $e, Dropdown as
|
|
10
|
+
import Re from "dayjs";
|
|
11
|
+
import { Popover as Jt, theme as ct, Drawer as Xt, Space as pe, Form as ut, message as Zt, FormItem as dt, ConfigProvider as we, Popconfirm as pt, DropdownButton as ft, Menu as Te, MenuItem as $e, Dropdown as Be, Checkbox as ea, List as ta, ListItem as aa, Card as la, Button as vt, Table as mt, Tree as ra, Cascader as oa, DatePicker as sa, Input as me, InputPassword as na, InputNumber as ia, RangePicker as ca, Textarea as ua, TimePicker as da, Transfer as pa, TreeSelect as fa, Upload as va, Image as ma, LayoutContent as ga } from "ant-design-vue";
|
|
12
12
|
import { VueDraggableNext as ha } from "vue-draggable-next";
|
|
13
|
-
import { d as ba } from "./assets/modules/uploadList-
|
|
14
|
-
import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-
|
|
15
|
-
import { c as gt } from "./assets/modules/index-
|
|
16
|
-
import { _ as Yo, h as Go, b as Wo, a as Ho, d as qo, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-
|
|
17
|
-
import { _ as ee } from "./assets/modules/index-
|
|
18
|
-
import { _ as Y } from "./assets/modules/toolIcon-
|
|
19
|
-
import { a as rs } from "./assets/modules/toolIcon-
|
|
20
|
-
import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-
|
|
21
|
-
import { _ as gs } from "./assets/modules/index-
|
|
13
|
+
import { d as ba } from "./assets/modules/uploadList-B-Acsazt.js";
|
|
14
|
+
import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-B-Acsazt.js";
|
|
15
|
+
import { c as gt } from "./assets/modules/index-DrXeG06w.js";
|
|
16
|
+
import { _ as Yo, h as Go, b as Wo, a as Ho, d as qo, e as Qo, g as Jo, f as Xo, n as Zo, p as es, t as ts, v as as } from "./assets/modules/index-DrXeG06w.js";
|
|
17
|
+
import { _ as ee } from "./assets/modules/index-cop45Etu.js";
|
|
18
|
+
import { _ as Y } from "./assets/modules/toolIcon-CFsCkPLp.js";
|
|
19
|
+
import { a as rs } from "./assets/modules/toolIcon-CFsCkPLp.js";
|
|
20
|
+
import { _ as ss, b as ns, c as is, d as cs, e as us, I as ds, f as ps, g as fs, a as vs } from "./assets/modules/menuTabs-Bmgx084v.js";
|
|
21
|
+
import { _ as gs } from "./assets/modules/index-D1xNOLT_.js";
|
|
22
22
|
import { _ as ce } from "./assets/modules/_plugin-vue_export-helper-CHgC5LLL.js";
|
|
23
23
|
const We = (r, a, e, t = "remove") => {
|
|
24
24
|
if (!e)
|
|
@@ -34,13 +34,15 @@ const We = (r, a, e, t = "remove") => {
|
|
|
34
34
|
}
|
|
35
35
|
}, He = (r) => {
|
|
36
36
|
var o, f;
|
|
37
|
-
const a =
|
|
37
|
+
const a = Ae(), { url: e, role: t, permit: s } = r;
|
|
38
38
|
if (ve(t) && ve(s))
|
|
39
39
|
return !0;
|
|
40
40
|
const i = e ?? ((f = (o = window.location.hash) == null ? void 0 : o.split("#")) == null ? void 0 : f[1]) ?? window.location.pathname;
|
|
41
|
-
if (
|
|
41
|
+
if (Ee.VITE_PERMISSION_MODE === "none")
|
|
42
|
+
return !0;
|
|
43
|
+
if (Ee.VITE_PERMISSION_MODE === "role")
|
|
42
44
|
return ve(t) ? !0 : a.hasRole(t);
|
|
43
|
-
if (
|
|
45
|
+
if (Ee.VITE_PERMISSION_MODE === "permit") {
|
|
44
46
|
let c = !1, p = !1;
|
|
45
47
|
return ve(t) || (c = a.hasRole(t)), a.isAdmin() ? c : (ve(s) || (p = a.hasPermit(i, s)), c || p);
|
|
46
48
|
}
|
|
@@ -64,11 +66,11 @@ const We = (r, a, e, t = "remove") => {
|
|
|
64
66
|
r.removeEventListener("keydown", () => {
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
|
-
},
|
|
69
|
+
}, Ue = {
|
|
68
70
|
auth: xa,
|
|
69
71
|
submit: ya
|
|
70
|
-
}, ir = (r, a) => ((a || Object.keys(
|
|
71
|
-
t in
|
|
72
|
+
}, ir = (r, a) => ((a || Object.keys(Ue)).forEach((t) => {
|
|
73
|
+
t in Ue && r.directive(t, Ue[t]);
|
|
72
74
|
}), r), ue = (r, a) => {
|
|
73
75
|
const e = r.find((t) => t.key === a);
|
|
74
76
|
if (e)
|
|
@@ -123,7 +125,7 @@ const We = (r, a, e, t = "remove") => {
|
|
|
123
125
|
}, Ta = (r, a) => {
|
|
124
126
|
a.selectable.value = !a.selectable.value;
|
|
125
127
|
}, ht = () => {
|
|
126
|
-
const r =
|
|
128
|
+
const r = ze();
|
|
127
129
|
r.setFullscreen(!r.fullscreen);
|
|
128
130
|
}, $a = (r, a) => {
|
|
129
131
|
(r.icons || r.labels) && (r.iconStatus = r.iconStatus || 0, r.iconStatus += 1, r.labels && r.labels.length && (r.label = r.labels[r.iconStatus % r.labels.length]), r.icons && r.icons.length && (r.icon = r.icons[r.iconStatus % r.icons.length]));
|
|
@@ -272,7 +274,7 @@ class bt {
|
|
|
272
274
|
}
|
|
273
275
|
async function ur() {
|
|
274
276
|
try {
|
|
275
|
-
const r = await
|
|
277
|
+
const r = await Ke(
|
|
276
278
|
{
|
|
277
279
|
api: "PLATFORM_API",
|
|
278
280
|
url: "/api/SysCacheSvr/getLastTime",
|
|
@@ -280,7 +282,7 @@ async function ur() {
|
|
|
280
282
|
},
|
|
281
283
|
{}
|
|
282
284
|
);
|
|
283
|
-
if ((r == null ? void 0 : r.status) ===
|
|
285
|
+
if ((r == null ? void 0 : r.status) === je.SUCCESS) {
|
|
284
286
|
const a = r.data;
|
|
285
287
|
Object.keys(a).forEach((e) => {
|
|
286
288
|
const t = a[e];
|
|
@@ -360,20 +362,20 @@ const dr = async (r, a) => {
|
|
|
360
362
|
}
|
|
361
363
|
}, _t = (r) => {
|
|
362
364
|
const a = /\{([^}]+)\}/g;
|
|
363
|
-
return r.replace(a, (e, t) =>
|
|
365
|
+
return r.replace(a, (e, t) => Re().format(t));
|
|
364
366
|
}, vr = async (r, a, e, t) => {
|
|
365
367
|
try {
|
|
366
368
|
const s = _t(r), i = a.filter((p) => p.visible !== !1), o = yt(i);
|
|
367
369
|
let f = e.page, c = e.gridQuery;
|
|
368
|
-
return t.api || (t.api = f.api), t.authorize === void 0 && (t.authorize = f.authorize), e.isGridLoading.value = !0,
|
|
369
|
-
if (e.isGridLoading.value = !1, (p == null ? void 0 : p.status) ===
|
|
370
|
+
return t.api || (t.api = f.api), t.authorize === void 0 && (t.authorize = f.authorize), e.isGridLoading.value = !0, Ke(t, c).then(async (p) => {
|
|
371
|
+
if (e.isGridLoading.value = !1, (p == null ? void 0 : p.status) === je.SUCCESS) {
|
|
370
372
|
if (p.data) {
|
|
371
373
|
let v = p.data;
|
|
372
374
|
const n = wt(v, i);
|
|
373
375
|
await kt(s, o, n);
|
|
374
376
|
}
|
|
375
377
|
} else if ((p == null ? void 0 : p.errno) == $t) {
|
|
376
|
-
|
|
378
|
+
Ae().logout(!1);
|
|
377
379
|
return;
|
|
378
380
|
}
|
|
379
381
|
});
|
|
@@ -383,7 +385,7 @@ const dr = async (r, a) => {
|
|
|
383
385
|
}, mr = /* @__PURE__ */ L({
|
|
384
386
|
__name: "fullscreen",
|
|
385
387
|
setup(r) {
|
|
386
|
-
const a =
|
|
388
|
+
const a = ze();
|
|
387
389
|
return (e, t) => (u(), k(Y, {
|
|
388
390
|
onClick: ge(l(ht), ["stop"]),
|
|
389
391
|
icon: l(a).fullscreen ? "icon-exitscreen" : "icon-fullscreen",
|
|
@@ -659,7 +661,7 @@ const dr = async (r, a) => {
|
|
|
659
661
|
], 2)) : S("", !0),
|
|
660
662
|
l(i).errClass ? (u(), x("span", {
|
|
661
663
|
key: 2,
|
|
662
|
-
style:
|
|
664
|
+
style: Ve({ left: r.nextLine ? "2px" : l(s) }),
|
|
663
665
|
class: "absolute bottom-[3px] text-[12px] text-[#ff4d4fcc]"
|
|
664
666
|
}, E(l(i).msg), 5)) : S("", !0)
|
|
665
667
|
], 2));
|
|
@@ -806,7 +808,7 @@ const dr = async (r, a) => {
|
|
|
806
808
|
gridCtrl: {}
|
|
807
809
|
},
|
|
808
810
|
setup(r) {
|
|
809
|
-
const a = r, e = a.gridCtrl, { tools: t } = Fa(a.gridCtrl), s =
|
|
811
|
+
const a = r, e = a.gridCtrl, { tools: t } = Fa(a.gridCtrl), s = ze();
|
|
810
812
|
M(
|
|
811
813
|
() => e.selectable.value,
|
|
812
814
|
(f) => {
|
|
@@ -828,7 +830,7 @@ const dr = async (r, a) => {
|
|
|
828
830
|
(u(!0), x(U, null, V(l(t), (p, v) => (u(), x(U, {
|
|
829
831
|
key: p.key
|
|
830
832
|
}, [
|
|
831
|
-
l(J)(p) && p.dropdown ? (u(), k(l(
|
|
833
|
+
l(J)(p) && p.dropdown ? (u(), k(l(Be), {
|
|
832
834
|
key: 0,
|
|
833
835
|
placement: "bottomRight",
|
|
834
836
|
class: "p-0 rounded-none"
|
|
@@ -915,7 +917,7 @@ const dr = async (r, a) => {
|
|
|
915
917
|
}, null, 8, ["icon"])
|
|
916
918
|
]),
|
|
917
919
|
_: 2
|
|
918
|
-
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(J)(p) ? (u(), k(l(
|
|
920
|
+
}, 1032, ["class", "disabled", "tiptext", "onClick"])) : l(J)(p) ? (u(), k(l(Be), {
|
|
919
921
|
key: 2,
|
|
920
922
|
placement: "bottomRight",
|
|
921
923
|
class: "p-0 rounded-none"
|
|
@@ -1020,7 +1022,7 @@ const dr = async (r, a) => {
|
|
|
1020
1022
|
}, 1032, ["type", "danger", "disabled", "icon", "onClick"])), [
|
|
1021
1023
|
[n, { url: i.value, role: m.role, permit: m.permit }]
|
|
1022
1024
|
])), 128)),
|
|
1023
|
-
c.value.length > 0 ? (u(), k(l(
|
|
1025
|
+
c.value.length > 0 ? (u(), k(l(Be), { key: 0 }, {
|
|
1024
1026
|
overlay: w(() => [
|
|
1025
1027
|
D(l(Te), null, {
|
|
1026
1028
|
default: w(() => [
|
|
@@ -1142,7 +1144,7 @@ const dr = async (r, a) => {
|
|
|
1142
1144
|
checked: C[l(t).statusKey],
|
|
1143
1145
|
"onUpdate:checked": (_) => C[l(t).statusKey] = _,
|
|
1144
1146
|
disabled: r.statusDisabled ? r.statusDisabled(C) : !1,
|
|
1145
|
-
data: l(
|
|
1147
|
+
data: l(Oe).EnableDisable,
|
|
1146
1148
|
onClick: (_) => l(rt)(l(t), C),
|
|
1147
1149
|
size: "small",
|
|
1148
1150
|
class: R([
|
|
@@ -1177,7 +1179,7 @@ const dr = async (r, a) => {
|
|
|
1177
1179
|
}), Va = { class: "w-1/3 relative mb-1" }, Ya = { class: "flex items-center w-[90%]" }, Ga = { class: "flex-grow pl-1" }, Wa = {
|
|
1178
1180
|
key: 0,
|
|
1179
1181
|
class: "absolute bottom-[3px] left-[85px] text-[12px] text-[#ff4d4fcc] block"
|
|
1180
|
-
},
|
|
1182
|
+
}, Me = /* @__PURE__ */ L({
|
|
1181
1183
|
inheritAttrs: !1,
|
|
1182
1184
|
__name: "searchItem",
|
|
1183
1185
|
props: {
|
|
@@ -1297,15 +1299,15 @@ const dr = async (r, a) => {
|
|
|
1297
1299
|
return [
|
|
1298
1300
|
O(d.$slots, "default"),
|
|
1299
1301
|
(_ = r.gridCtrl) != null && _.searchBar ? O(d.$slots, "control", { key: 0 }) : S("", !0),
|
|
1300
|
-
s.value >= 1 ? (u(), k(
|
|
1302
|
+
s.value >= 1 ? (u(), k(Me, {
|
|
1301
1303
|
key: 1,
|
|
1302
1304
|
class: "w-1/3"
|
|
1303
1305
|
})) : S("", !0),
|
|
1304
|
-
s.value >= 2 ? (u(), k(
|
|
1306
|
+
s.value >= 2 ? (u(), k(Me, {
|
|
1305
1307
|
key: 2,
|
|
1306
1308
|
class: "w-1/3"
|
|
1307
1309
|
})) : S("", !0),
|
|
1308
|
-
i.value || ($ = r.gridCtrl) != null && $.searchBar ? (u(), k(
|
|
1310
|
+
i.value || ($ = r.gridCtrl) != null && $.searchBar ? (u(), k(Me, {
|
|
1309
1311
|
key: 3,
|
|
1310
1312
|
class: "w-1/3 flex justify-end text-right pr-5",
|
|
1311
1313
|
"wrapper-col": { flex: "auto" }
|
|
@@ -1421,7 +1423,7 @@ const dr = async (r, a) => {
|
|
|
1421
1423
|
disabled: f(n),
|
|
1422
1424
|
onClick: (m) => l(X)(n, l(e).page, l(e), a.record),
|
|
1423
1425
|
size: "small",
|
|
1424
|
-
style:
|
|
1426
|
+
style: Ve({
|
|
1425
1427
|
padding: n.type ?? "0px 4px"
|
|
1426
1428
|
})
|
|
1427
1429
|
}, {
|
|
@@ -1587,7 +1589,7 @@ const dr = async (r, a) => {
|
|
|
1587
1589
|
checked: g.record[l(t).statusKey],
|
|
1588
1590
|
"onUpdate:checked": (K) => g.record[l(t).statusKey] = K,
|
|
1589
1591
|
disabled: r.statusDisabled ? r.statusDisabled(g.record) : !1,
|
|
1590
|
-
data: l(
|
|
1592
|
+
data: l(Oe).EnableDisable,
|
|
1591
1593
|
onClick: (K) => l(rt)(l(t), g.record),
|
|
1592
1594
|
class: R([
|
|
1593
1595
|
"w-[58px]",
|
|
@@ -1616,7 +1618,7 @@ const dr = async (r, a) => {
|
|
|
1616
1618
|
}), qa = { class: "flex items-center" }, Qa = ["onClick"], Ja = {
|
|
1617
1619
|
key: 1,
|
|
1618
1620
|
class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[8px]"
|
|
1619
|
-
},
|
|
1621
|
+
}, Ne = /* @__PURE__ */ L({
|
|
1620
1622
|
__name: "groupTools",
|
|
1621
1623
|
props: {
|
|
1622
1624
|
groupTools: {},
|
|
@@ -1933,7 +1935,7 @@ const dr = async (r, a) => {
|
|
|
1933
1935
|
}, [
|
|
1934
1936
|
a.collapsed ? (u(), x("div", gl, [
|
|
1935
1937
|
I("div", hl, [
|
|
1936
|
-
D(
|
|
1938
|
+
D(Ne, {
|
|
1937
1939
|
"group-tools": p.value
|
|
1938
1940
|
}, null, 8, ["group-tools"])
|
|
1939
1941
|
]),
|
|
@@ -1963,18 +1965,18 @@ const dr = async (r, a) => {
|
|
|
1963
1965
|
class: ["w-7 h-7 text-blue-600 group-hover:text-blue-700 transition-colors", b.iconClass]
|
|
1964
1966
|
}, { ref_for: !0 }, b.iconProps), null, 16, ["icon", "class"])) : S("", !0)
|
|
1965
1967
|
], 16, xl)), [
|
|
1966
|
-
[
|
|
1968
|
+
[Le, l(J)(b)]
|
|
1967
1969
|
]);
|
|
1968
1970
|
}), 128))
|
|
1969
1971
|
]))), 128))
|
|
1970
1972
|
])
|
|
1971
1973
|
])) : (u(), x("div", tl, [
|
|
1972
1974
|
I("div", al, [
|
|
1973
|
-
r.showModeToggle ? (u(), k(
|
|
1975
|
+
r.showModeToggle ? (u(), k(Ne, {
|
|
1974
1976
|
key: 0,
|
|
1975
1977
|
"group-tools": c.value
|
|
1976
1978
|
}, null, 8, ["group-tools"])) : S("", !0),
|
|
1977
|
-
D(
|
|
1979
|
+
D(Ne, {
|
|
1978
1980
|
"group-tools": p.value
|
|
1979
1981
|
}, null, 8, ["group-tools"])
|
|
1980
1982
|
]),
|
|
@@ -2035,7 +2037,7 @@ const dr = async (r, a) => {
|
|
|
2035
2037
|
}, { ref_for: !0 }, b.iconProps), null, 16, ["icon", "class"])) : S("", !0),
|
|
2036
2038
|
I("span", ul, E(b.label), 1)
|
|
2037
2039
|
], 16, cl)), [
|
|
2038
|
-
[
|
|
2040
|
+
[Le, l(J)(b)]
|
|
2039
2041
|
]);
|
|
2040
2042
|
}), 128))
|
|
2041
2043
|
])) : (u(), x("div", dl, [
|
|
@@ -2067,7 +2069,7 @@ const dr = async (r, a) => {
|
|
|
2067
2069
|
b.description ? (u(), x("div", ml, E(b.description), 1)) : S("", !0)
|
|
2068
2070
|
])
|
|
2069
2071
|
], 16, pl)), [
|
|
2070
|
-
[
|
|
2072
|
+
[Le, l(J)(b)]
|
|
2071
2073
|
]);
|
|
2072
2074
|
}), 128))
|
|
2073
2075
|
]))
|
|
@@ -2496,7 +2498,7 @@ const Dr = /* @__PURE__ */ L({
|
|
|
2496
2498
|
}
|
|
2497
2499
|
},
|
|
2498
2500
|
setup(r) {
|
|
2499
|
-
const a = r, e = T(JSON.parse(JSON.stringify(
|
|
2501
|
+
const a = r, e = T(JSON.parse(JSON.stringify(Oe.getOptions(a.dataKey))));
|
|
2500
2502
|
return a.all === !0 && e.value.unshift({
|
|
2501
2503
|
label: y("webui.components.form.radio.all"),
|
|
2502
2504
|
value: a.allValue || [0, 1]
|
|
@@ -2515,7 +2517,7 @@ const Dr = /* @__PURE__ */ L({
|
|
|
2515
2517
|
const p = e.startDate, v = e.endDate;
|
|
2516
2518
|
if (!(!p || !v))
|
|
2517
2519
|
try {
|
|
2518
|
-
const n =
|
|
2520
|
+
const n = Re(p), m = Re(v);
|
|
2519
2521
|
return !n.isValid() || !m.isValid() ? void 0 : [n, m];
|
|
2520
2522
|
} catch {
|
|
2521
2523
|
return;
|
|
@@ -2859,7 +2861,7 @@ const Dr = /* @__PURE__ */ L({
|
|
|
2859
2861
|
return F.size / 1024 / 1024 > e.maxFileSize ? (ae.error(i("webui.components.form.upload.fileSizeExceeded", [e.maxFileSize])), !1) : !0;
|
|
2860
2862
|
}, n = () => e.maxCount > 1 && o.value.length >= e.maxCount, m = (F) => {
|
|
2861
2863
|
const P = F;
|
|
2862
|
-
return P.params || (P.params = {}), P.params.FileKey = P.name, e.parentPath && (P.params.FileKey =
|
|
2864
|
+
return P.params || (P.params = {}), P.params.FileKey = P.name, e.parentPath && (P.params.FileKey = Ye.join("/", e.parentPath, P.name)), P;
|
|
2863
2865
|
}, d = (F) => v(F) && e.autoUpload, h = async (F) => {
|
|
2864
2866
|
if (F.length === 0) return;
|
|
2865
2867
|
const P = [...o.value];
|
|
@@ -2914,7 +2916,7 @@ const Dr = /* @__PURE__ */ L({
|
|
|
2914
2916
|
() => e.parentPath,
|
|
2915
2917
|
(F) => {
|
|
2916
2918
|
F && o.value.forEach((P) => {
|
|
2917
|
-
P.params.FileKey =
|
|
2919
|
+
P.params.FileKey = Ye.join("/", F, P.fileName);
|
|
2918
2920
|
});
|
|
2919
2921
|
}
|
|
2920
2922
|
);
|
|
@@ -2923,12 +2925,12 @@ const Dr = /* @__PURE__ */ L({
|
|
|
2923
2925
|
g.value = A(P), $.value = !0;
|
|
2924
2926
|
}, B = (F) => {
|
|
2925
2927
|
const P = o.value[F];
|
|
2926
|
-
e.deleteUrl && P.minioFile && P.minioFile.Key ?
|
|
2928
|
+
e.deleteUrl && P.minioFile && P.minioFile.Key ? Ke(e.deleteUrl, {
|
|
2927
2929
|
Query: {
|
|
2928
2930
|
FileKey: P.minioFile.Key
|
|
2929
2931
|
}
|
|
2930
2932
|
}).then((H) => {
|
|
2931
|
-
H && H.status ===
|
|
2933
|
+
H && H.status === je.SUCCESS && (ae.success(i("webui.common.success")), o.value.splice(F, 1));
|
|
2932
2934
|
}) : o.value.splice(F, 1);
|
|
2933
2935
|
}, K = T(/* @__PURE__ */ new Map()), A = (F) => {
|
|
2934
2936
|
if (F.originFileObj)
|
|
@@ -2942,7 +2944,7 @@ const Dr = /* @__PURE__ */ L({
|
|
|
2942
2944
|
if (!F.minioFile || !e.previewUrl) return;
|
|
2943
2945
|
const P = F.minioFile.Key;
|
|
2944
2946
|
try {
|
|
2945
|
-
const H = `${e.previewUrl.url}?FileKey=${encodeURIComponent(F.minioFile.Key)}`, Z = Gt() ? await Vt.getToken() :
|
|
2947
|
+
const H = `${e.previewUrl.url}?FileKey=${encodeURIComponent(F.minioFile.Key)}`, Z = Gt() ? await Vt.getToken() : Ae().getToken(), q = await fetch(H, {
|
|
2946
2948
|
method: "GET",
|
|
2947
2949
|
headers: {
|
|
2948
2950
|
Authorization: `Bearer ${Z}`
|
|
@@ -3041,7 +3043,7 @@ const Dr = /* @__PURE__ */ L({
|
|
|
3041
3043
|
return (t, s) => (u(), x("div", jl, [
|
|
3042
3044
|
D(l(ga), {
|
|
3043
3045
|
class: "m-[10px] p-[10px] h-[calc(100vh-100px)] !min-h-[calc(100vh-100px)]",
|
|
3044
|
-
style:
|
|
3046
|
+
style: Ve({
|
|
3045
3047
|
backgroundColor: l(e).colorBgContainer
|
|
3046
3048
|
})
|
|
3047
3049
|
}, {
|
|
@@ -3083,7 +3085,7 @@ export {
|
|
|
3083
3085
|
br as Form,
|
|
3084
3086
|
xr as FormItem,
|
|
3085
3087
|
mr as Fullscreen,
|
|
3086
|
-
|
|
3088
|
+
Ne as GroupTools,
|
|
3087
3089
|
cs as Header,
|
|
3088
3090
|
us as HeaderExits,
|
|
3089
3091
|
Ea as Helper,
|
|
@@ -3102,7 +3104,7 @@ export {
|
|
|
3102
3104
|
ps as Menu,
|
|
3103
3105
|
fs as MenuTabs,
|
|
3104
3106
|
Vt as MicroOpenApis,
|
|
3105
|
-
|
|
3107
|
+
Oe as OPTIONS,
|
|
3106
3108
|
Ut as OptionCommProps,
|
|
3107
3109
|
vs as ProjectIcon,
|
|
3108
3110
|
Er as PropEditor,
|
|
@@ -3111,7 +3113,7 @@ export {
|
|
|
3111
3113
|
Lr as RadioStatus,
|
|
3112
3114
|
Ur as RangePicker,
|
|
3113
3115
|
wr as Search,
|
|
3114
|
-
|
|
3116
|
+
Me as SearchItem,
|
|
3115
3117
|
Mr as Select,
|
|
3116
3118
|
lt as Switch,
|
|
3117
3119
|
kr as Table,
|
|
@@ -3196,7 +3198,7 @@ export {
|
|
|
3196
3198
|
It as openNewForm,
|
|
3197
3199
|
go as outFormDataFields,
|
|
3198
3200
|
ho as parseIcons,
|
|
3199
|
-
|
|
3201
|
+
Ye as path,
|
|
3200
3202
|
bo as pendingNavigation,
|
|
3201
3203
|
xo as pinia,
|
|
3202
3204
|
jo as previewFromMinio,
|
|
@@ -3222,10 +3224,10 @@ export {
|
|
|
3222
3224
|
Mt as useOptionFactory,
|
|
3223
3225
|
Eo as usePageFactory,
|
|
3224
3226
|
Lo as usePageInfo,
|
|
3225
|
-
|
|
3227
|
+
ze as useSettingInfo,
|
|
3226
3228
|
Fa as useToolFactory,
|
|
3227
3229
|
Uo as useTreeFactory,
|
|
3228
|
-
|
|
3230
|
+
Ae as useUserInfo,
|
|
3229
3231
|
Mo as validateData,
|
|
3230
3232
|
as as validateExcel
|
|
3231
3233
|
};
|
package/package.json
CHANGED
|
@@ -85,7 +85,10 @@ const checkPermission = (params: PermissionParams): boolean => {
|
|
|
85
85
|
// 获取当前URL,优先使用传入的url,否则使用当前路由路径
|
|
86
86
|
const currentUrl = url ?? window.location.hash?.split('#')?.[1] ?? window.location.pathname;
|
|
87
87
|
|
|
88
|
-
if (EnvConfig.VITE_PERMISSION_MODE === '
|
|
88
|
+
if (EnvConfig.VITE_PERMISSION_MODE === 'none') {
|
|
89
|
+
// 权限模式为none时,允许所有访问
|
|
90
|
+
return true;
|
|
91
|
+
} else if (EnvConfig.VITE_PERMISSION_MODE === 'role') {
|
|
89
92
|
// 仅判断角色权限
|
|
90
93
|
if (!isEmpty(role)) {
|
|
91
94
|
return userInfoStore.hasRole(role!);
|
package/src/router/index.ts
CHANGED
|
@@ -69,7 +69,10 @@ const hasPermission = (route: RouteRecord, isLogin: boolean): boolean => {
|
|
|
69
69
|
if (isLogin) {
|
|
70
70
|
const userInfoStore = useUserInfo();
|
|
71
71
|
|
|
72
|
-
if (EnvConfig.VITE_PERMISSION_MODE === '
|
|
72
|
+
if (EnvConfig.VITE_PERMISSION_MODE === 'none') {
|
|
73
|
+
// 权限模式为none时,允许所有访问
|
|
74
|
+
return true;
|
|
75
|
+
} else if (EnvConfig.VITE_PERMISSION_MODE === 'role') {
|
|
73
76
|
// 仅判断角色权限,未配置或者长度为0则可以访问
|
|
74
77
|
if (roles.length === 0) {
|
|
75
78
|
return true;
|
package/src/stores/appInfo.ts
CHANGED
|
@@ -51,7 +51,10 @@ const checkRoutePermission = (route: RouteRecord): boolean => {
|
|
|
51
51
|
return true;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
if (EnvConfig.VITE_PERMISSION_MODE === '
|
|
54
|
+
if (EnvConfig.VITE_PERMISSION_MODE === 'none') {
|
|
55
|
+
// 权限模式为none时,允许所有访问
|
|
56
|
+
return true;
|
|
57
|
+
} else if (EnvConfig.VITE_PERMISSION_MODE === 'role') {
|
|
55
58
|
// 仅判断角色权限
|
|
56
59
|
if (!isEmpty(roles)) {
|
|
57
60
|
return userInfoStore.hasRole(roles!);
|
|
@@ -307,8 +310,10 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
307
310
|
if (!isMicroApp() || !isBaseMicroApp()) {
|
|
308
311
|
/// 非基座应用,获取用户应用权限
|
|
309
312
|
const userInfoStore = useUserInfo();
|
|
310
|
-
///
|
|
311
|
-
|
|
313
|
+
/// 获取用户应用权限(权限模式不为none时)
|
|
314
|
+
if (EnvConfig.VITE_PERMISSION_MODE !== 'none') {
|
|
315
|
+
await userInfoStore.getRolePermits(appInfo.Id);
|
|
316
|
+
}
|
|
312
317
|
|
|
313
318
|
if (this.appInfo.Routes.length) this.setAppRoutes(this.appInfo.Routes);
|
|
314
319
|
}
|
package/src/stores/userInfo.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
2
|
import { ApiResponse, httpPost, ReqParams, ResStatus, setToken } from '@skyfox2000/fapi';
|
|
3
3
|
import message from 'vue-m-message';
|
|
4
|
-
import { isMicroApp, LoginInfo, UserInfo } from '@skyfox2000/microbase';
|
|
4
|
+
import { isMicroApp, LoginInfo, UserInfo, EnvConfig } from '@skyfox2000/microbase';
|
|
5
5
|
import { ref } from 'vue';
|
|
6
6
|
import { useAppInfo } from './appInfo';
|
|
7
7
|
import { MicroOpenApis } from '@/utils/micro-openapis';
|
|
@@ -202,6 +202,11 @@ export const useUserInfo = defineStore('userInfo', {
|
|
|
202
202
|
return false;
|
|
203
203
|
}
|
|
204
204
|
|
|
205
|
+
// 如果权限模式为none,直接返回成功
|
|
206
|
+
if (EnvConfig.VITE_PERMISSION_MODE === 'none') {
|
|
207
|
+
return true;
|
|
208
|
+
}
|
|
209
|
+
|
|
205
210
|
// 如果授权信息存在且应用ID相同,即已获取过授权信息
|
|
206
211
|
if (auth.value && auth.value.appId === appId) {
|
|
207
212
|
return true;
|
|
@@ -380,7 +385,7 @@ export const useUserInfo = defineStore('userInfo', {
|
|
|
380
385
|
return Promise.resolve();
|
|
381
386
|
},
|
|
382
387
|
},
|
|
383
|
-
persist: !isMicroApp()
|
|
388
|
+
persist: !isMicroApp() && EnvConfig.VITE_IS_JCIAPP !== "true"
|
|
384
389
|
? {
|
|
385
390
|
key: 'MICROAPP_USER_INFO',
|
|
386
391
|
storage: localStorage,
|