@skyfox2000/webui 1.6.2 → 1.6.4
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-D6mTs3zS.js → baseLayout-9Hv2xP0D.js} +3 -3
- package/lib/assets/modules/{file-upload-B74s5Vtb.js → file-upload-BEB7Ig2N.js} +1 -1
- package/lib/assets/modules/{index-lmz2beMc.js → index-JAj15je-.js} +2 -2
- package/lib/assets/modules/{index-CXDKjQwi.js → index-ZDMvpXj5.js} +2 -2
- package/lib/assets/modules/{index-DP43BJ_M.js → index-kEckFtaA.js} +1 -1
- package/lib/assets/modules/{menuTabs-DGAhbfbK.js → menuTabs-CSJ0yT7g.js} +145 -142
- package/lib/assets/modules/{toolIcon-DTZ86PSe.js → toolIcon-Dcbc73H6.js} +1 -1
- package/lib/assets/modules/{upload-template-2YQlEeTh.js → upload-template-BxSAxxvr.js} +294 -274
- package/lib/assets/modules/{uploadList-DlwK6xXN.js → uploadList-DP03hr0k.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/stores/settingInfo.d.ts +3 -0
- package/lib/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/components/layout/header/index.vue +4 -4
- package/src/locales/en-US.json +5 -0
- package/src/stores/settingInfo.ts +27 -5
- package/src/stores/userInfo.ts +13 -11
|
@@ -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-kEckFtaA.js";
|
|
3
|
+
import { a as B, _ as K } from "./toolIcon-Dcbc73H6.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-BxSAxxvr.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-BEB7Ig2N.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-Dcbc73H6.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { $ as b } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as b } from "../../assets/modules/upload-template-BxSAxxvr.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { _ as Q } from "../../assets/modules/index-
|
|
7
|
+
import { _ as Q } from "../../assets/modules/index-ZDMvpXj5.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-9Hv2xP0D.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-BxSAxxvr.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-BxSAxxvr.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-BxSAxxvr.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-kEckFtaA.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-BxSAxxvr.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-JAj15je-.js";
|
|
8
|
+
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-BEB7Ig2N.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-9Hv2xP0D.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-BxSAxxvr.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-kEckFtaA.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-BxSAxxvr.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-BEB7Ig2N.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-DP03hr0k.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-kEckFtaA.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-BxSAxxvr.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-BEB7Ig2N.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-DP03hr0k.js";
|
|
13
13
|
const W = /* @__PURE__ */ F({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
|
@@ -5,4 +5,7 @@ export declare const useSettingInfo: StoreDefinition<"settingInfo", SettingInfo,
|
|
|
5
5
|
setMenuCollapse(status: boolean): void;
|
|
6
6
|
getTableColumns(pageUrl: string): Record<string, any>[];
|
|
7
7
|
setTableColumns(pageUrl: string, columns: Record<string, any>[]): void;
|
|
8
|
+
setUserInfoPersist(status: boolean): void;
|
|
9
|
+
setShowExit(status: boolean): void;
|
|
10
|
+
setShowLanguage(status: boolean): void;
|
|
8
11
|
}>;
|
package/lib/webui.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
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 Ye } from "./assets/modules/file-upload-
|
|
4
|
-
import { A as Ro, U as Bo } from "./assets/modules/file-upload-
|
|
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-BxSAxxvr.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-BxSAxxvr.js";
|
|
3
|
+
import { f as Yt, p as Ye } from "./assets/modules/file-upload-BEB7Ig2N.js";
|
|
4
|
+
import { A as Ro, U as Bo } from "./assets/modules/file-upload-BEB7Ig2N.js";
|
|
5
5
|
import { EnvConfig as Ee, isMicroApp as Gt } from "@skyfox2000/microbase";
|
|
6
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";
|
|
@@ -10,15 +10,15 @@ import "async-validator";
|
|
|
10
10
|
import Re from "dayjs";
|
|
11
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-DP03hr0k.js";
|
|
14
|
+
import { C as zo, U as Oo, a as Ko, p as jo } from "./assets/modules/uploadList-DP03hr0k.js";
|
|
15
|
+
import { c as gt } from "./assets/modules/index-JAj15je-.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-JAj15je-.js";
|
|
17
|
+
import { _ as ee } from "./assets/modules/index-kEckFtaA.js";
|
|
18
|
+
import { _ as Y } from "./assets/modules/toolIcon-Dcbc73H6.js";
|
|
19
|
+
import { a as rs } from "./assets/modules/toolIcon-Dcbc73H6.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-CSJ0yT7g.js";
|
|
21
|
+
import { _ as gs } from "./assets/modules/index-ZDMvpXj5.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)
|
package/package.json
CHANGED
|
@@ -17,8 +17,8 @@ const onCollapseClick = () => {
|
|
|
17
17
|
settingInfoStore.setMenuCollapse(!settingInfoStore.menuCollapse);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
const showLanguageSelector = ((settingInfoStore as any).showLanguage ?? true) && getAvailableLanguages().length > 1;
|
|
21
|
+
|
|
22
22
|
</script>
|
|
23
23
|
<template>
|
|
24
24
|
<LayoutHeader
|
|
@@ -48,8 +48,8 @@ const showLanguageSelector = getAvailableLanguages().length > 1;
|
|
|
48
48
|
<Language v-if="showLanguageSelector" />
|
|
49
49
|
<div v-if="showLanguageSelector" class="w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"></div>
|
|
50
50
|
<User />
|
|
51
|
-
<div class="w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"></div>
|
|
52
|
-
<HeaderExits />
|
|
51
|
+
<div v-if="(settingInfoStore as any).showExit" class="w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"></div>
|
|
52
|
+
<HeaderExits v-if="(settingInfoStore as any).showExit" />
|
|
53
53
|
</Space>
|
|
54
54
|
</div>
|
|
55
55
|
</LayoutHeader>
|
package/src/locales/en-US.json
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
"failed": "Failed",
|
|
24
24
|
"enable": "Enable",
|
|
25
25
|
"disable": "Disable",
|
|
26
|
+
"close": "Close",
|
|
26
27
|
"male": "Male",
|
|
27
28
|
"female": "Female",
|
|
28
29
|
"online": "Online",
|
|
@@ -98,6 +99,9 @@
|
|
|
98
99
|
"confirmDelete": "Are you sure to delete this record?",
|
|
99
100
|
"more": "More"
|
|
100
101
|
},
|
|
102
|
+
"table": {
|
|
103
|
+
"confirmDelete": "Are you sure to delete this record?"
|
|
104
|
+
},
|
|
101
105
|
"toolpanel": {
|
|
102
106
|
"tool": "Tools",
|
|
103
107
|
"searchResult": "Search Results",
|
|
@@ -297,6 +301,7 @@
|
|
|
297
301
|
"expandSearch": "Expand Search Bar",
|
|
298
302
|
"collapseSearch": "Collapse Search Bar",
|
|
299
303
|
"rowHeight": "Adjust Row Height",
|
|
304
|
+
"templateManagement": "Template",
|
|
300
305
|
"showCheckbox": "Show Checkbox",
|
|
301
306
|
"hideCheckbox": "Hide Checkbox",
|
|
302
307
|
"expandRows": "Expand Rows",
|
|
@@ -3,11 +3,15 @@ import { SettingInfo } from '@skyfox2000/microbase';
|
|
|
3
3
|
import { defineStore } from 'pinia';
|
|
4
4
|
|
|
5
5
|
export const useSettingInfo = defineStore('settingInfo', {
|
|
6
|
-
state: ()
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
state: () =>
|
|
7
|
+
({
|
|
8
|
+
fullscreen: false,
|
|
9
|
+
menuCollapse: false,
|
|
10
|
+
tableColumns: {},
|
|
11
|
+
userInfoPersist: true,
|
|
12
|
+
showExit: true,
|
|
13
|
+
showLanguage: true,
|
|
14
|
+
}) as SettingInfo,
|
|
11
15
|
actions: {
|
|
12
16
|
/**
|
|
13
17
|
* 设置全屏
|
|
@@ -42,6 +46,24 @@ export const useSettingInfo = defineStore('settingInfo', {
|
|
|
42
46
|
},
|
|
43
47
|
});
|
|
44
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* 设置用户信息是否持久化
|
|
51
|
+
*/
|
|
52
|
+
setUserInfoPersist(status: boolean) {
|
|
53
|
+
(this as any).userInfoPersist = status;
|
|
54
|
+
},
|
|
55
|
+
/**
|
|
56
|
+
* 设置是否显示退出按钮
|
|
57
|
+
*/
|
|
58
|
+
setShowExit(status: boolean) {
|
|
59
|
+
(this as any).showExit = status;
|
|
60
|
+
},
|
|
61
|
+
/**
|
|
62
|
+
* 设置是否显示语言选择
|
|
63
|
+
*/
|
|
64
|
+
setShowLanguage(status: boolean) {
|
|
65
|
+
(this as any).showLanguage = status;
|
|
66
|
+
},
|
|
45
67
|
},
|
|
46
68
|
persist: false,
|
|
47
69
|
});
|
package/src/stores/userInfo.ts
CHANGED
|
@@ -4,6 +4,7 @@ import message from 'vue-m-message';
|
|
|
4
4
|
import { isMicroApp, LoginInfo, UserInfo, EnvConfig } from '@skyfox2000/microbase';
|
|
5
5
|
import { ref } from 'vue';
|
|
6
6
|
import { useAppInfo } from './appInfo';
|
|
7
|
+
import { useSettingInfo } from './settingInfo';
|
|
7
8
|
import { MicroOpenApis } from '@/utils/micro-openapis';
|
|
8
9
|
import { $t } from '@/locales/index';
|
|
9
10
|
import { LoginUrlList, TokenError } from '@/const/stores';
|
|
@@ -385,15 +386,16 @@ export const useUserInfo = defineStore('userInfo', {
|
|
|
385
386
|
return Promise.resolve();
|
|
386
387
|
},
|
|
387
388
|
},
|
|
388
|
-
persist:
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
ctx
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
389
|
+
persist:
|
|
390
|
+
!isMicroApp() &&
|
|
391
|
+
(useSettingInfo() as any).userInfoPersist
|
|
392
|
+
? {
|
|
393
|
+
key: 'MICROAPP_USER_INFO',
|
|
394
|
+
storage: localStorage,
|
|
395
|
+
pick: ['token', 'userInfo'],
|
|
396
|
+
afterHydrate: (ctx: any) => {
|
|
397
|
+
ctx.store.init();
|
|
398
|
+
},
|
|
399
|
+
}
|
|
400
|
+
: false,
|
|
399
401
|
});
|