@indfnd/common-mobile 0.0.62 → 0.0.64

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,20 @@
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
+ ### [0.0.64](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.63...v0.0.64) (2024-12-03)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 修复重定向URL解码问题 ([9f81221](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/9f81221906a57d354cf7bb90f3971ed8650bf45c))
11
+
12
+ ### [0.0.63](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.62...v0.0.63) (2024-11-30)
13
+
14
+
15
+ ### Features
16
+
17
+ * 添加单点登录后授权后重定向指定页面功能 ([ab8fff5](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/ab8fff5c234e69e9eacf4d1093e15f3181384710))
18
+
5
19
  ### [0.0.62](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.61...v0.0.62) (2024-11-27)
6
20
 
7
21
  ### [0.0.61](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.60...v0.0.61) (2024-11-27)
@@ -2,7 +2,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
2
2
  import Vue$1 from "vue";
3
3
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
4
4
  const name$1 = "@indfnd/common-mobile";
5
- const version$2 = "0.0.61";
5
+ const version$2 = "0.0.63";
6
6
  const author$1 = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -70453,11 +70453,8 @@ const Cookie = {
70453
70453
  };
70454
70454
  async function renderRoutes({ router, store: store2, microType, allowPermissionList, routerOptionsBak }) {
70455
70455
  await store2.dispatch("getUserInfo");
70456
- console.log("getUserInfo success");
70457
70456
  await store2.dispatch("getAppListData");
70458
- console.log("getAppListData success");
70459
70457
  const permissionData = await store2.dispatch("getPermissionData");
70460
- console.log("getPermissionData success", permissionData);
70461
70458
  const sessionVersion = JSON.parse(getSessionStorage("appInfo").extendProps.extendProps);
70462
70459
  const localVersion = getLocalStorage("versionInfo");
70463
70460
  if (localVersion) {
@@ -70533,7 +70530,6 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
70533
70530
  console.log("typeof window.Code", typeof window.Code);
70534
70531
  async function _renderRoutes() {
70535
70532
  var _a, _b, _c;
70536
- console.log("store.state.user.userName", store2.state.user.userName);
70537
70533
  if (!store2.state.user.userName) {
70538
70534
  Spin.show();
70539
70535
  try {
@@ -70545,9 +70541,17 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
70545
70541
  routerOptionsBak
70546
70542
  });
70547
70543
  console.log("router1");
70548
- next2({ ...to, replace: true });
70544
+ const wxState = getQueryVariable("state");
70545
+ let state = {};
70546
+ if (!!wxState && wxState != "null") {
70547
+ state = JSON.parse(decodeURIComponent(decodeURIComponent(wxState)));
70548
+ console.log("state", state);
70549
+ next2({ path: state.url, replace: true });
70550
+ } else {
70551
+ next2({ ...to, replace: true });
70552
+ }
70549
70553
  } catch (error) {
70550
- console.log("router2", error);
70554
+ console.log("router2");
70551
70555
  next2({ name: LOGIN_PAGE_NAME });
70552
70556
  }
70553
70557
  Spin.hide();