@witlink/usercenter 1.2.10 → 1.2.11

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/README.md CHANGED
@@ -22,6 +22,7 @@ import {
22
22
  SysOrgan, // 组织架构管理
23
23
  SysRole, // 角色管理
24
24
  SysUser, // 用户管理
25
+ SysUserInfo, // 个人中心
25
26
  } from '@witlink/usercenter'
26
27
  ```
27
28
 
@@ -36,6 +37,7 @@ const app = createApp(App)
36
37
  // i18n 为vue-i18n实例 pinia 为pinia实例
37
38
  // export interface UserCenterOptions {
38
39
  // lang?: LangType
40
+ // systemId?: 'usercenter' | 'cis' | 'ami3.0'
39
41
  // i18n: any
40
42
  // logoutToUrl: string
41
43
  // pinia?: any
@@ -44,6 +46,7 @@ const app = createApp(App)
44
46
 
45
47
  app.use(UserCenter, {
46
48
  i18n,
49
+ systemId: 'usercenter' | 'cis' | 'ami3.0', // 系统名称 用于用户中心页面的多语言
47
50
  logoutToUrl: string, // 在当前页面token失效后跳转的地址
48
51
  pinia, // 设置用户中心store 如果在主系统已加载piniaPluginPersistedstate 持久化插件则不需要设置
49
52
  lang: 'zh_CN',
@@ -98,6 +101,7 @@ import {
98
101
  SysOrgan, // 组织架构管理
99
102
  SysRole, // 角色管理
100
103
  SysUser, // 用户管理
104
+ SysUserInfo, // 个人中心
101
105
  } from '@witlink/usercenter'
102
106
 
103
107
  // 创建路由实例
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as n, watch as _, openBlock as b, createElementBlock as w, createVNode as V } from "vue";
2
- import { a3 as y, a4 as C, a5 as R, a6 as S, _ as k } from "./index.037b8a32.mjs";
2
+ import { a3 as y, a4 as C, a5 as R, a6 as S, _ as k } from "./index.c8cccc3e.mjs";
3
3
  const D = /* @__PURE__ */ v({
4
4
  __name: "RegionSelect",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { createVNode as u } from "vue";
2
- import { A as l } from "./index.037b8a32.mjs";
2
+ import { A as l } from "./index.c8cccc3e.mjs";
3
3
  var o = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z" } }] }, name: "up", theme: "outlined" };
4
4
  const p = o;
5
5
  function c(r) {
@@ -1,5 +1,5 @@
1
1
  import { openBlock as e, createElementBlock as r } from "vue";
2
- import { _ as n } from "./index.037b8a32.mjs";
2
+ import { _ as n } from "./index.c8cccc3e.mjs";
3
3
  const t = {};
4
4
  function o(c, i) {
5
5
  return e(), r("div", null, "dashboard");
@@ -1,7 +1,7 @@
1
1
  import { createVNode as e, defineComponent as G, ref as v, reactive as Q, onMounted as X, openBlock as I, createBlock as V, withCtx as l, mergeProps as P, createElementBlock as q, Fragment as ve, renderList as ye, computed as Y, normalizeStyle as he, renderSlot as be, resolveComponent as w, createElementVNode as S, createTextVNode as k, toDisplayString as E, unref as W, createCommentVNode as xe } from "vue";
2
2
  import { message as R } from "ant-design-vue";
3
3
  import { useI18n as Z } from "vue-i18n";
4
- import { A as we, z as L, p as ee, q as ne, F as te, S as le, G as ke, _ as K, H as Ie, I as Le, B as $e, K as Ce, L as Oe, N as Ue, O as Se } from "./index.037b8a32.mjs";
4
+ import { A as we, z as L, p as ee, q as ne, F as te, S as le, G as ke, _ as K, H as Ie, I as Le, B as $e, K as Ce, L as Oe, N as Ue, O as Se } from "./index.c8cccc3e.mjs";
5
5
  import './assets/index.ca7d4055.css';var Re = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z" } }, { tag: "path", attrs: { d: "M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z" } }] }, name: "form", theme: "outlined" };
6
6
  const Te = Re;
7
7
  function J(s) {