@indfnd/common 1.0.78 → 1.0.80

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/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.80](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.79...v1.0.80) (2025-01-03)
6
+
7
+
8
+ ### Features
9
+
10
+ * 修复山东单点登录异常 ([e802ab1](http://git.inspur.com/imp-ec/ind-front/ind-common-front/commit/e802ab10fe2c5f0eb0d21b086b8fbc2b50981e8a))
11
+
12
+ ### [1.0.79](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.78...v1.0.79) (2025-01-02)
13
+
5
14
  ### [1.0.78](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.77...v1.0.78) (2024-12-31)
6
15
 
7
16
  ### [1.0.77](http://git.inspur.com/imp-ec/ind-front/ind-common-front/compare/v1.0.76...v1.0.77) (2024-12-23)
@@ -5460,7 +5460,7 @@ var lodash = { exports: {} };
5460
5460
  })(lodash, lodash.exports);
5461
5461
  var _ = lodash.exports;
5462
5462
  const name$1 = "@indfnd/common";
5463
- const version = "1.0.77";
5463
+ const version = "1.0.79";
5464
5464
  const author = "huxuetong";
5465
5465
  const publishConfig = {
5466
5466
  registry: "https://registry.npmjs.org/"
@@ -67731,37 +67731,16 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
67731
67731
  let search = location.search;
67732
67732
  if (search) {
67733
67733
  let rlt = getQueryVariable("token");
67734
- if (rlt && rlt.length > 1) {
67735
- if (token !== rlt[1]) {
67736
- token = rlt[1];
67734
+ if (rlt) {
67735
+ if (token !== rlt) {
67736
+ token = rlt;
67737
67737
  store2.dispatch("loginSuccess", token);
67738
67738
  }
67739
67739
  }
67740
- }
67741
- if (!token) {
67742
- fetch(
67743
- `${window.location.protocol}//${window.location.host}/ind-uc-ext-server/sso/ssoTokenLogin`,
67744
- {
67745
- headers: {
67746
- accept: "application/json, text/plain, */*",
67747
- "accept-language": "zh-CN,zh;q=0.9",
67748
- "cache-control": "no-cache",
67749
- pragma: "no-cache"
67750
- },
67751
- referrer: `${window.location.protocol}//${window.location.host}/`,
67752
- referrerPolicy: "origin",
67753
- body: null,
67754
- method: "GET",
67755
- mode: "cors",
67756
- credentials: "include"
67757
- }
67758
- ).then((response) => response.json()).then((jsonData) => {
67759
- if (jsonData.token) {
67760
- token = jsonData.token;
67761
- sessionStorage.setItem("lambo-token", token);
67762
- store2.dispatch("loginSuccess", token);
67763
- }
67764
- });
67740
+ let ssoToken = getQueryVariable("sso_token");
67741
+ if (ssoToken) {
67742
+ sessionStorage.setItem("sso_token", ssoToken);
67743
+ }
67765
67744
  }
67766
67745
  if (!token && to.name !== LOGIN_PAGE_NAME) {
67767
67746
  next({ name: LOGIN_PAGE_NAME });