hongshu-view 1.0.16 → 1.0.18

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
@@ -1,10 +1,9 @@
1
1
  ## hongshu-view
2
2
  城市大脑鸿书产品web端业务组件库
3
3
 
4
- ### 1.0.16
5
- 1.修改AppHeader组件的样式 试用期不生效问题
6
- 2025年9159:38:00
7
-
4
+ ### 1.0.17
5
+ 1.处理刷新token失败回到登录
6
+ 2025年103010:40:00
8
7
 
9
8
  ### 1.0.14
10
9
  1.修改图标
@@ -22006,7 +22006,7 @@ function P6e(n, e = !0, s) {
22006
22006
  let b = sessionStorage.getItem("lastest_success_ajax_time");
22007
22007
  if (b && (/* @__PURE__ */ new Date()).getTime() - (b - 0) > Ope)
22008
22008
  throw new Error(`未操作时间超过${Ope}`);
22009
- return yield I6e(a), yield uK(a, l, d);
22009
+ return yield I6e(a, d), yield uK(a, l, d);
22010
22010
  } catch (b) {
22011
22011
  hie(d);
22012
22012
  }
@@ -22044,23 +22044,31 @@ function P6e(n, e = !0, s) {
22044
22044
  }
22045
22045
  });
22046
22046
  }
22047
- function I6e(n) {
22047
+ function I6e(n, e) {
22048
22048
  return Yr(this, null, function* () {
22049
- let e = "", s = Hm.get("logininfo");
22050
- if (s)
22051
- e = s.refreshUrl;
22049
+ let s = "", a = Hm.get("logininfo");
22050
+ if (a)
22051
+ s = a.refreshUrl;
22052
22052
  else
22053
22053
  throw new Error("未发现logininfo");
22054
- e || (e = new URL(n).origin + "/system/login/refReshTokenWeb");
22055
- let a = s.refresh_token;
22056
- if (!a)
22054
+ s || (s = new URL(n).origin + "/system/login/refReshTokenWeb");
22055
+ let l = a.refresh_token;
22056
+ if (!l)
22057
22057
  throw new Error("logininfo中未发现refresh_token");
22058
- let l = yield B6e(e, a), { data: d } = l;
22059
- if (d.code == "200") {
22060
- let f = d.val;
22061
- s.refresh_token = f.refresh_token, s.token = "bearer " + f.access_token, Hm.set("logininfo", s);
22062
- } else
22063
- throw new Error("刷新token失败");
22058
+ let d = yield B6e(s, l), { data: f } = d;
22059
+ if (f.code == "200") {
22060
+ let m = f.val;
22061
+ a.refresh_token = m.refresh_token, a.token = "bearer " + m.access_token, Hm.set("logininfo", a);
22062
+ } else {
22063
+ window.sessionStorage.removeItem("logininfo"), window.localStorage.removeItem("logininfo");
22064
+ let m = "/login.html", b = window.localStorage.getItem("loginPage");
22065
+ if (b)
22066
+ try {
22067
+ m = b;
22068
+ } catch (w) {
22069
+ }
22070
+ throw e.loginPage && (m = e.loginPage), location.href = m, new Error("刷新token失败");
22071
+ }
22064
22072
  });
22065
22073
  }
22066
22074
  let sU = !1, _pe = [], Ape = [];
@@ -25463,7 +25471,7 @@ const PVe = {
25463
25471
  /* TEXT */
25464
25472
  )) : Ot("v-if", !0);
25465
25473
  }
25466
- }), zVe = /* @__PURE__ */ Y3(HVe, [["__scopeId", "data-v-134d3abc"]]), VVe = { class: "application-item" }, UVe = { class: "app_icon_con" }, WVe = { class: "app_icon_wrapper" }, jVe = { class: "app_mname_con" }, KVe = lt({
25474
+ }), zVe = /* @__PURE__ */ Y3(HVe, [["__scopeId", "data-v-9038fe2a"]]), VVe = { class: "application-item" }, UVe = { class: "app_icon_con" }, WVe = { class: "app_icon_wrapper" }, jVe = { class: "app_mname_con" }, KVe = lt({
25467
25475
  name: "Applicationinfo"
25468
25476
  }), qVe = /* @__PURE__ */ Object.assign(KVe, {
25469
25477
  props: {