@indfnd/common-mobile 0.0.59 → 0.0.62

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,17 @@
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.62](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.61...v0.0.62) (2024-11-27)
6
+
7
+ ### [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)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * 添加山东中烟新协同办公平台移动端单点 ([462faad](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/462faad0712d4f085c1893cb9cc51aa57afd758e))
13
+
14
+ ### [0.0.60](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.59...v0.0.60) (2024-11-12)
15
+
5
16
  ### [0.0.59](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.58...v0.0.59) (2024-11-12)
6
17
 
7
18
 
@@ -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.58";
5
+ const version$2 = "0.0.61";
6
6
  const author$1 = "huxuetong";
7
7
  const publishConfig = {
8
8
  registry: "https://registry.npmjs.org/"
@@ -70453,8 +70453,11 @@ 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");
70456
70457
  await store2.dispatch("getAppListData");
70458
+ console.log("getAppListData success");
70457
70459
  const permissionData = await store2.dispatch("getPermissionData");
70460
+ console.log("getPermissionData success", permissionData);
70458
70461
  const sessionVersion = JSON.parse(getSessionStorage("appInfo").extendProps.extendProps);
70459
70462
  const localVersion = getLocalStorage("versionInfo");
70460
70463
  if (localVersion) {
@@ -70530,6 +70533,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
70530
70533
  console.log("typeof window.Code", typeof window.Code);
70531
70534
  async function _renderRoutes() {
70532
70535
  var _a, _b, _c;
70536
+ console.log("store.state.user.userName", store2.state.user.userName);
70533
70537
  if (!store2.state.user.userName) {
70534
70538
  Spin.show();
70535
70539
  try {
@@ -70543,7 +70547,7 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
70543
70547
  console.log("router1");
70544
70548
  next2({ ...to, replace: true });
70545
70549
  } catch (error) {
70546
- console.log("router2");
70550
+ console.log("router2", error);
70547
70551
  next2({ name: LOGIN_PAGE_NAME });
70548
70552
  }
70549
70553
  Spin.hide();
@@ -70563,7 +70567,8 @@ function addRouterGuards({ router, store: store2, microType, allowPermissionList
70563
70567
  }
70564
70568
  }
70565
70569
  }
70566
- if (typeof window.Code != "undefined") {
70570
+ const code2 = getQueryVariable("code");
70571
+ if (typeof window.Code != "undefined" || code2) {
70567
70572
  if (!token) {
70568
70573
  token = await pluginLogin(store2);
70569
70574
  store2.dispatch("loginSuccess", token);
@@ -70609,6 +70614,7 @@ const pluginLogin = (store2) => {
70609
70614
  store2.commit("setUserName", "");
70610
70615
  store2.commit("setToken", "");
70611
70616
  return new Promise((resolve, reject) => {
70617
+ console.log("1111`111");
70612
70618
  const code2 = getQueryVariable("code");
70613
70619
  if (code2) {
70614
70620
  axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {