@skyfox2000/webui 1.2.5 → 1.2.6
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/{file-upload-CoDWKNFQ.js → file-upload-Cf9uxE2y.js} +1 -1
- package/lib/assets/modules/{form-excel-DitXm4uj.js → form-excel-DnROEQ0w.js} +1 -1
- package/lib/assets/modules/{index-DG2jNBuv.js → index-BkbOMv2e.js} +1 -1
- package/lib/assets/modules/{index-C4515EtU.js → index-D4mESG0b.js} +356 -364
- package/lib/assets/modules/{index-B5NckHoK.js → index-DvbJb5Ha.js} +2 -2
- package/lib/assets/modules/{menuTabs-BwX6S1WN.js → menuTabs-DgX7pUbX.js} +2 -2
- package/lib/assets/modules/{toolIcon-B5Qojob9.js → toolIcon-C0bp66dj.js} +1 -1
- package/lib/assets/modules/{uploadList-BdeV2JlK.js → uploadList-CWhqNLX9.js} +3 -3
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +3 -3
- 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/UploadForm/index.js +4 -4
- package/lib/stores/appInfo.d.ts +2 -5
- package/lib/webui.es.js +12 -12
- package/package.json +1 -1
- package/src/router/index.ts +1 -11
- package/src/stores/appInfo.ts +23 -32
- package/src/stores/userInfo.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as A, provide as B, ref as S, watch as p, onMounted as F, createBlock as n, openBlock as r, unref as a, withCtx as t, createElementVNode as N, renderSlot as b, createVNode as V, createCommentVNode as d, createTextVNode as u, toDisplayString as m } from "vue";
|
|
2
|
-
import { _ as f } from "./index-
|
|
2
|
+
import { _ as f } from "./index-BkbOMv2e.js";
|
|
3
3
|
import { Modal as E, Space as M } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { P, o as $, d as D, b as K } from "./index-
|
|
5
|
+
import { P, o as $, d as D, b as K } from "./index-D4mESG0b.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as _, createBlock as y, createCommentVNode as I, openBlock as p, unref as t, mergeProps as C, useAttrs as q, computed as P, ref as h, watch as k, withCtx as f, createElementBlock as g, normalizeStyle as T, createElementVNode as x, inject as J, onMounted as R, createVNode as u, toDisplayString as U, Fragment as L, createTextVNode as O, reactive as Q, nextTick as W, renderList as G, withModifiers as X } from "vue";
|
|
2
|
-
import { a as w, _ as b } from "./toolIcon-
|
|
3
|
-
import { c as F, Q as j, ad as B, T as K, S as E, u as H, a as V, R as Y, r as D, ab as A } from "./index-
|
|
2
|
+
import { a as w, _ as b } from "./toolIcon-C0bp66dj.js";
|
|
3
|
+
import { c as F, Q as j, ad as B, T as K, S as E, u as H, a as V, R as Y, r as D, ab as A } from "./index-D4mESG0b.js";
|
|
4
4
|
import { theme as N, Breadcrumb as Z, Modal as ee, Flex as te, LayoutHeader as ne, Space as oe, Menu as se, Tabs as ie, TabPane as ce } from "ant-design-vue";
|
|
5
5
|
import { mainAppApis as M } from "@skyfox2000/microbase";
|
|
6
6
|
import { SERVER_HOST as z } from "@skyfox2000/fapi";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as s, openBlock as l, unref as a, withCtx as p, renderSlot as f, createCommentVNode as u, mergeProps as d } from "vue";
|
|
2
2
|
import { Tooltip as I } from "ant-design-vue";
|
|
3
3
|
import { SERVER_HOST as r } from "@skyfox2000/fapi";
|
|
4
|
-
import { c as S } from "./index-
|
|
4
|
+
import { c as S } from "./index-D4mESG0b.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as $, ref as k, computed as O, watch as j, createElementBlock as p, openBlock as f, createElementVNode as r, createVNode as v, unref as l, mergeProps as B, withCtx as U, createTextVNode as E, toDisplayString as y, Fragment as M, renderList as R, normalizeClass as T, createCommentVNode as F } from "vue";
|
|
2
|
-
import { _ as V } from "./index-
|
|
2
|
+
import { _ as V } from "./index-BkbOMv2e.js";
|
|
3
3
|
import { Upload as A, Tag as K, Progress as D } from "ant-design-vue";
|
|
4
4
|
import { httpPost as I, ResStatus as Q } from "@skyfox2000/fapi";
|
|
5
|
-
import "./index-
|
|
6
|
-
import { U as o, p as q } from "./file-upload-
|
|
5
|
+
import "./index-D4mESG0b.js";
|
|
6
|
+
import { U as o, p as q } from "./file-upload-Cf9uxE2y.js";
|
|
7
7
|
import { combineParams as G } from "@skyfox2000/microbase";
|
|
8
8
|
import h from "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as F, defineAsyncComponent as M, ref as m, watch as V, onMounted as J, createElementBlock as x, openBlock as p, Fragment as K, createElementVNode as v, createVNode as _, toDisplayString as W, unref as i, createBlock as P, withKeys as f, normalizeClass as N, withModifiers as w, withCtx as z, createCommentVNode as L } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { _ as q } from "../../assets/modules/toolIcon-
|
|
3
|
+
import { _ as q } from "../../assets/modules/toolIcon-C0bp66dj.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import "../../assets/modules/index-
|
|
5
|
+
import "../../assets/modules/index-D4mESG0b.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "vue-m-message";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { _ as D } from "../../assets/modules/index-
|
|
10
|
+
import { _ as D } from "../../assets/modules/index-DvbJb5Ha.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
12
|
const h = async (s) => window.ace ? window.ace : new Promise((l, t) => {
|
|
13
13
|
const o = document.createElement("script");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as y, ref as I, watch as C, onMounted as b, resolveComponent as g, createBlock as n, openBlock as o, unref as e, withCtx as l, createCommentVNode as c, createVNode as r, createElementVNode as u, createElementBlock as k, toDisplayString as w, normalizeClass as S, KeepAlive as N, resolveDynamicComponent as $ } from "vue";
|
|
2
2
|
import { Layout as f, LayoutSider as E } from "ant-design-vue";
|
|
3
|
-
import { a as z } from "../../assets/modules/toolIcon-
|
|
4
|
-
import { I as A, a as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-
|
|
5
|
-
import { ab as j, a as K, ad as M } from "../../assets/modules/index-
|
|
3
|
+
import { a as z } from "../../assets/modules/toolIcon-C0bp66dj.js";
|
|
4
|
+
import { I as A, a as B, f as L, d as V, g as D } from "../../assets/modules/menuTabs-DgX7pUbX.js";
|
|
5
|
+
import { ab as j, a as K, ad as M } from "../../assets/modules/index-D4mESG0b.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import P from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/index-
|
|
2
|
+
import { r as s } from "../../assets/modules/index-D4mESG0b.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 p, openBlock as m, unref as r, withCtx as e, createVNode as n, createTextVNode as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/index-
|
|
2
|
+
import { r as s } from "../../assets/modules/index-D4mESG0b.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as Y, ref as r, watch as V, onMounted as Z, createBlock as ee, openBlock as d, unref as i, withCtx as _, renderSlot as le, createElementVNode as c, createVNode as m, createElementBlock as f, createCommentVNode as M, createTextVNode as O, toDisplayString as F, normalizeClass as ae, Fragment as $, renderList as P } from "vue";
|
|
2
|
-
import { _ as A } from "../../assets/modules/index-
|
|
2
|
+
import { _ as A } from "../../assets/modules/index-BkbOMv2e.js";
|
|
3
3
|
import { Modal as te, Upload as I, Alert as G, Space as re } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as oe } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as se, a5 as ie } from "../../assets/modules/index-
|
|
6
|
-
import { A as ue, p as ne, U as ce } from "../../assets/modules/file-upload-
|
|
5
|
+
import { $ as se, a5 as ie } from "../../assets/modules/index-D4mESG0b.js";
|
|
6
|
+
import { A as ue, p as ne, U as ce } from "../../assets/modules/file-upload-Cf9uxE2y.js";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import n from "vue-m-message";
|
|
9
|
-
import { p as ve, v as de, c as fe } from "../../assets/modules/form-excel-
|
|
9
|
+
import { p as ve, v as de, c as fe } from "../../assets/modules/form-excel-DnROEQ0w.js";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
12
|
import pe from "@vue-office/excel";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as S, ref as m, watch as k, onMounted as z, createBlock as D, openBlock as E, unref as s, withCtx as f, createVNode as v, createTextVNode as g } from "vue";
|
|
2
|
-
import { _ as x } from "../../assets/modules/index-
|
|
2
|
+
import { _ as x } from "../../assets/modules/index-BkbOMv2e.js";
|
|
3
3
|
import { Modal as L, Space as N } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as $ } from "@skyfox2000/fapi";
|
|
5
|
-
import { a1 as B } from "../../assets/modules/index-
|
|
6
|
-
import { A as R, U as A } from "../../assets/modules/file-upload-
|
|
5
|
+
import { a1 as B } from "../../assets/modules/index-D4mESG0b.js";
|
|
6
|
+
import { A as R, U as A } from "../../assets/modules/file-upload-Cf9uxE2y.js";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import t from "vue-m-message";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { _ as M } from "../../assets/modules/uploadList-
|
|
12
|
+
import { _ as M } from "../../assets/modules/uploadList-CWhqNLX9.js";
|
|
13
13
|
const W = /* @__PURE__ */ S({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
package/lib/stores/appInfo.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RouteRecordRaw } from 'vue-router';
|
|
2
2
|
import { AppInfo, RouteRecord } from '../../../502424_MicroBase';
|
|
3
3
|
import { Component } from 'vue';
|
|
4
4
|
import { StoreDefinition } from 'pinia';
|
|
5
5
|
export declare const useAppInfo: StoreDefinition<"appInfo", {
|
|
6
|
-
microRouter: any;
|
|
7
|
-
microActions: Record<string, () => void>;
|
|
8
6
|
appInfo: AppInfo & {
|
|
9
7
|
Routes: RouteRecordRaw[];
|
|
10
8
|
flattenRoutes: Record<string, RouteRecord>;
|
|
@@ -15,7 +13,6 @@ export declare const useAppInfo: StoreDefinition<"appInfo", {
|
|
|
15
13
|
ExcludeComponents: string[];
|
|
16
14
|
menuLoaded: boolean;
|
|
17
15
|
}, {}, {
|
|
18
|
-
init(router: Router, microActions: Record<string, () => void>): void;
|
|
19
16
|
loadAppList(appList?: AppInfo[]): Promise<void>;
|
|
20
17
|
getRemoteAppList(): Promise<void>;
|
|
21
18
|
toDefaultApp(url?: string): Promise<void>;
|
|
@@ -29,6 +26,6 @@ export declare const useAppInfo: StoreDefinition<"appInfo", {
|
|
|
29
26
|
}): Component;
|
|
30
27
|
excludeComponent(path: string): void;
|
|
31
28
|
matchedRoutes(key: string): RouteRecord[];
|
|
32
|
-
|
|
29
|
+
clean(): void;
|
|
33
30
|
logout(): void;
|
|
34
31
|
}>;
|
package/lib/webui.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as Xe, i as X, a as ve, c as Ze, P as te, o as ie, b as et, d as Pe, e as Ee, r as oe, f as tt, g as at, h as Fe, j as lt, k as A, l as Ne, m as Re, n as V, p as ke, q as rt, s as st, O as Oe, t as Me, _ as ot, v as nt, w as it, x as ct, y as ut, z as dt, A as Be } from "./assets/modules/index-
|
|
2
|
-
import { a7 as bl, L as xl, M as yl, S as kl, a6 as wl, a4 as Cl, a5 as Sl, a8 as $l, V as Tl, Q as Il, a2 as Dl, $ as Pl, K as El, H as Fl, a1 as Nl, R as Rl, C as Ol, X as Ml, a0 as Bl, a3 as Al, J as zl, I as Ll, N as Ul, a9 as Yl, B as Vl, Z as Kl, aa as Hl, U as jl, W as Ql, T as ql, ab as Wl, D as Gl, E as Jl, ac as Xl, G as Zl, ad as er, F as tr, Y as ar } from "./assets/modules/index-
|
|
3
|
-
import { A as rr, U as sr, a as or, g as nr, c as ir, d as cr, m as ur, p as dr, u as pr, b as fr } from "./assets/modules/file-upload-
|
|
1
|
+
import { u as Xe, i as X, a as ve, c as Ze, P as te, o as ie, b as et, d as Pe, e as Ee, r as oe, f as tt, g as at, h as Fe, j as lt, k as A, l as Ne, m as Re, n as V, p as ke, q as rt, s as st, O as Oe, t as Me, _ as ot, v as nt, w as it, x as ct, y as ut, z as dt, A as Be } from "./assets/modules/index-D4mESG0b.js";
|
|
2
|
+
import { a7 as bl, L as xl, M as yl, S as kl, a6 as wl, a4 as Cl, a5 as Sl, a8 as $l, V as Tl, Q as Il, a2 as Dl, $ as Pl, K as El, H as Fl, a1 as Nl, R as Rl, C as Ol, X as Ml, a0 as Bl, a3 as Al, J as zl, I as Ll, N as Ul, a9 as Yl, B as Vl, Z as Kl, aa as Hl, U as jl, W as Ql, T as ql, ab as Wl, D as Gl, E as Jl, ac as Xl, G as Zl, ad as er, F as tr, Y as ar } from "./assets/modules/index-D4mESG0b.js";
|
|
3
|
+
import { A as rr, U as sr, a as or, g as nr, c as ir, d as cr, m as ur, p as dr, u as pr, b as fr } from "./assets/modules/file-upload-Cf9uxE2y.js";
|
|
4
4
|
import { EnvConfig as we } from "@skyfox2000/microbase";
|
|
5
5
|
import { FrontCache as le, httpPost as Ae, ResStatus as ze, SERVER_HOST as pt, fieldMapping as re } from "@skyfox2000/fapi";
|
|
6
6
|
import ne from "vue-m-message";
|
|
@@ -9,15 +9,15 @@ import "async-validator";
|
|
|
9
9
|
import de from "dayjs";
|
|
10
10
|
import { Popover as ht, theme as Ve, Drawer as gt, Space as ee, Form as Ke, message as _t, FormItem as He, ConfigProvider as Se, Popconfirm as bt, Button as je, DropdownButton as xt, Menu as ge, MenuItem as _e, Dropdown as pe, Checkbox as yt, Switch as kt, Table as Qe, Tree as wt, Cascader as Ct, DatePicker as St, Input as fe, InputPassword as $t, InputNumber as Tt, RangePicker as It, Textarea as Dt, Transfer as Pt, TreeSelect as Et, LayoutContent as Ft } from "ant-design-vue";
|
|
11
11
|
import { VueDraggableNext as Nt } from "vue-draggable-next";
|
|
12
|
-
import { d as qe } from "./assets/modules/uploadList-
|
|
13
|
-
import { _ as mr, a as hr } from "./assets/modules/uploadList-
|
|
14
|
-
import { c as _r, p as br, v as xr } from "./assets/modules/form-excel-
|
|
15
|
-
import { _ as B } from "./assets/modules/index-
|
|
16
|
-
import { _ as U } from "./assets/modules/toolIcon-
|
|
17
|
-
import { a as kr } from "./assets/modules/toolIcon-
|
|
18
|
-
import { _ as Q } from "./assets/modules/menuTabs-
|
|
19
|
-
import { a as Cr, c as Sr, d as $r, e as Tr, I as Ir, f as Dr, g as Pr, b as Er } from "./assets/modules/menuTabs-
|
|
20
|
-
import { _ as Nr } from "./assets/modules/index-
|
|
12
|
+
import { d as qe } from "./assets/modules/uploadList-CWhqNLX9.js";
|
|
13
|
+
import { _ as mr, a as hr } from "./assets/modules/uploadList-CWhqNLX9.js";
|
|
14
|
+
import { c as _r, p as br, v as xr } from "./assets/modules/form-excel-DnROEQ0w.js";
|
|
15
|
+
import { _ as B } from "./assets/modules/index-BkbOMv2e.js";
|
|
16
|
+
import { _ as U } from "./assets/modules/toolIcon-C0bp66dj.js";
|
|
17
|
+
import { a as kr } from "./assets/modules/toolIcon-C0bp66dj.js";
|
|
18
|
+
import { _ as Q } from "./assets/modules/menuTabs-DgX7pUbX.js";
|
|
19
|
+
import { a as Cr, c as Sr, d as $r, e as Tr, I as Ir, f as Dr, g as Pr, b as Er } from "./assets/modules/menuTabs-DgX7pUbX.js";
|
|
20
|
+
import { _ as Nr } from "./assets/modules/index-DvbJb5Ha.js";
|
|
21
21
|
const $e = (r, a, t, e = "remove") => {
|
|
22
22
|
if (!t)
|
|
23
23
|
if (e === "disable") {
|
package/package.json
CHANGED
package/src/router/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useUserInfo } from '@/stores/userInfo';
|
|
2
|
-
import {
|
|
2
|
+
import { RouteRecord, EnvConfig } from '@skyfox2000/microbase';
|
|
3
3
|
import { RouteLocationNormalizedGeneric, RouteRecordRaw, Router, createRouter, createWebHashHistory } from 'vue-router';
|
|
4
4
|
import { useAppInfo } from '@/stores/appInfo';
|
|
5
5
|
import { Ref, ref } from 'vue';
|
|
@@ -166,16 +166,6 @@ router.beforeEach((to, _from, next) => {
|
|
|
166
166
|
}
|
|
167
167
|
});
|
|
168
168
|
|
|
169
|
-
/**
|
|
170
|
-
* 子应用更新主应用路由
|
|
171
|
-
*/
|
|
172
|
-
router.afterEach((to: RouteLocationNormalizedGeneric) => {
|
|
173
|
-
if (isMicroApp() && mainAppApis.value) {
|
|
174
|
-
const { mainAppPush } = mainAppApis.value;
|
|
175
|
-
if (mainAppPush) mainAppPush(to.hash);
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
|
|
179
169
|
/**
|
|
180
170
|
* 继续执行之前挂起的导航
|
|
181
171
|
* @param path 默认路径
|
package/src/stores/appInfo.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { defineStore } from 'pinia';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { RouteRecordRaw } from 'vue-router';
|
|
3
|
+
import {
|
|
4
|
+
AppAction,
|
|
5
|
+
AppInfo,
|
|
6
|
+
AppSource,
|
|
7
|
+
isBaseMicroApp,
|
|
8
|
+
isMicroApp,
|
|
9
|
+
mainAppApis,
|
|
10
|
+
RouteRecord,
|
|
11
|
+
} from '@skyfox2000/microbase';
|
|
4
12
|
import AppRouter, { addAppRoutes, continueNavigation, flattenRoute, LOGIN_PATH } from '@/router';
|
|
5
13
|
import { usePageInfo } from './pageInfo';
|
|
6
14
|
|
|
@@ -102,10 +110,6 @@ const findFirstPage = (routes: RouteRecord[], path = ''): string | undefined =>
|
|
|
102
110
|
|
|
103
111
|
export const useAppInfo = defineStore('appInfo', {
|
|
104
112
|
state: (): {
|
|
105
|
-
/// 微前端基座路由
|
|
106
|
-
microRouter: any;
|
|
107
|
-
/// 微前端基座方法
|
|
108
|
-
microActions: Record<string, () => void>;
|
|
109
113
|
/// 当前选中的
|
|
110
114
|
appInfo: AppInfo & {
|
|
111
115
|
/**
|
|
@@ -136,8 +140,6 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
136
140
|
*/
|
|
137
141
|
menuLoaded: boolean;
|
|
138
142
|
} => ({
|
|
139
|
-
microRouter: null,
|
|
140
|
-
microActions: {},
|
|
141
143
|
appInfo: {
|
|
142
144
|
Id: '',
|
|
143
145
|
Name: '',
|
|
@@ -159,10 +161,6 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
159
161
|
menuLoaded: false,
|
|
160
162
|
}),
|
|
161
163
|
actions: {
|
|
162
|
-
init(router: Router, microActions: Record<string, () => void>) {
|
|
163
|
-
this.microRouter = router;
|
|
164
|
-
this.microActions = microActions;
|
|
165
|
-
},
|
|
166
164
|
/**
|
|
167
165
|
* 加载授权应用列表
|
|
168
166
|
*/
|
|
@@ -347,19 +345,11 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
347
345
|
usePageInfo().setTabActive(path);
|
|
348
346
|
}
|
|
349
347
|
nextTick(() => {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
let microRouter = this.microRouter as Router;
|
|
356
|
-
microRouter.push({ path });
|
|
357
|
-
} else {
|
|
358
|
-
AppRouter.push({ path });
|
|
359
|
-
}
|
|
360
|
-
} else {
|
|
361
|
-
// 非微应用,直接使用当前应用路由AppRouter
|
|
362
|
-
AppRouter.push({ path });
|
|
348
|
+
// 直接使用当前应用路由AppRouter
|
|
349
|
+
AppRouter.push({ path });
|
|
350
|
+
if (mainAppApis.value && mainAppApis.value.mainAppPush) {
|
|
351
|
+
const fullPath = this.formatRoute(path);
|
|
352
|
+
mainAppApis.value.mainAppPush(fullPath);
|
|
363
353
|
}
|
|
364
354
|
});
|
|
365
355
|
},
|
|
@@ -433,7 +423,7 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
433
423
|
return matched.reverse();
|
|
434
424
|
},
|
|
435
425
|
|
|
436
|
-
|
|
426
|
+
clean() {
|
|
437
427
|
/// 清空信息
|
|
438
428
|
this.appInfo = {
|
|
439
429
|
Id: '',
|
|
@@ -457,13 +447,14 @@ export const useAppInfo = defineStore('appInfo', {
|
|
|
457
447
|
},
|
|
458
448
|
|
|
459
449
|
logout() {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
450
|
+
// 清理应用信息
|
|
451
|
+
this.clean();
|
|
452
|
+
AppRouter.push({ path: LOGIN_PATH + '#/' });
|
|
453
|
+
if (isMicroApp()) {
|
|
454
|
+
if (mainAppApis.value && mainAppApis.value.mainAppPush) {
|
|
455
|
+
mainAppApis.value.mainAppPush(LOGIN_PATH + '#/');
|
|
465
456
|
}
|
|
466
|
-
}
|
|
457
|
+
}
|
|
467
458
|
},
|
|
468
459
|
},
|
|
469
460
|
persist: {
|
package/src/stores/userInfo.ts
CHANGED