@indfnd/common-mobile 1.0.56 → 1.0.57

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,13 @@
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.57](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.56...v1.0.57) (2026-03-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * 自定义首页配置 ([5488853](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/548885301b972df4f98ac98372962eded367652e))
11
+
5
12
  ### [1.0.56](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.55...v1.0.56) (2026-03-10)
6
13
 
7
14
 
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
3
3
  import Vue$1 from "vue";
4
4
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
5
5
  const name$1 = "@indfnd/common-mobile";
6
- const version$2 = "1.0.55";
6
+ const version$2 = "1.0.56";
7
7
  const author$1 = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -22647,6 +22647,25 @@ function install$1(Vue2) {
22647
22647
  if (typeof window !== "undefined" && window.Vue) {
22648
22648
  install$1(window.Vue);
22649
22649
  }
22650
+ const isHb$1 = location.pathname.includes("scyxweb");
22651
+ function getIndexPreset(params) {
22652
+ return axios$3.get(
22653
+ `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
22654
+ { params }
22655
+ );
22656
+ }
22657
+ function saveIndexPreset(params) {
22658
+ return axios$3.post(
22659
+ `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
22660
+ params
22661
+ );
22662
+ }
22663
+ function getUserDefaultUrl() {
22664
+ console.log("getUserDefaultUrl begin");
22665
+ return axios$3.get(
22666
+ `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
22667
+ );
22668
+ }
22650
22669
  var render$v = function() {
22651
22670
  var _vm = this;
22652
22671
  var _h = _vm.$createElement;
@@ -22684,6 +22703,10 @@ const __vue2_script$v = {
22684
22703
  });
22685
22704
  }
22686
22705
  } else {
22706
+ getUserDefaultUrl().then((resp) => {
22707
+ location.href = resp.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
22708
+ return;
22709
+ });
22687
22710
  this.$router.push({ name: config.homeRouteName }, () => {
22688
22711
  this.loading = false;
22689
22712
  });
@@ -23018,7 +23041,7 @@ const __vue2_script$r = {
23018
23041
  }
23019
23042
  },
23020
23043
  isRowSelectable(params) {
23021
- return this.enableSelectAll || this.multiple || !this.multiple && !(params.data.children && params.data.children.length);
23044
+ return params.data.disabled ? false : this.enableSelectAll || this.multiple || !this.multiple && !(params.data.children && params.data.children.length);
23022
23045
  },
23023
23046
  async initConfig() {
23024
23047
  this.dataInited = false;
@@ -32970,24 +32993,6 @@ axios$1.isAxiosError = isAxiosError;
32970
32993
  axios$2.exports = axios$1;
32971
32994
  axios$2.exports.default = axios$1;
32972
32995
  var axios = axios$2.exports;
32973
- const isHb$1 = location.pathname.includes("scyxweb");
32974
- function getIndexPreset(params) {
32975
- return axios$3.get(
32976
- `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/get`,
32977
- { params }
32978
- );
32979
- }
32980
- function saveIndexPreset(params) {
32981
- return axios$3.post(
32982
- `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/ind-index-manage-preset/save`,
32983
- params
32984
- );
32985
- }
32986
- function getUserDefaultUrl() {
32987
- return axios$3.post(
32988
- `${location.protocol}//${location.host}${isHb$1 ? "/scyxgateway" : ""}/ind-uc-ext-server/manage/hb/getQywxRedirectUrl`
32989
- );
32990
- }
32991
32996
  const isHb = location.pathname.includes("scyxweb");
32992
32997
  const userAgent = navigator.userAgent.toLowerCase();
32993
32998
  const isQywx = /wxwork/.test(userAgent) ? true : false;
@@ -33246,12 +33251,18 @@ const pluginLogin = (store2) => {
33246
33251
  let url = location.protocol + "//" + location.host + "/scyxgateway/ind-uc-ext-server/sso/hb/ssoHbWxLogin";
33247
33252
  axios$3.get(url).then(async (resp) => {
33248
33253
  setToken(resp.token);
33249
- resolve(resp.token);
33250
33254
  localStorage.setItem("v8-token", resp.token);
33251
33255
  sessionStorage.setItem("lambo-token", resp.token);
33252
- getUserDefaultUrl().then((resp2) => {
33253
- location.href = resp2.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
33254
- });
33256
+ setTimeout(() => {
33257
+ console.log("before getUserDefaultUrl");
33258
+ getUserDefaultUrl().then((resp1) => {
33259
+ console.log("getUserDefaultUrl data", resp1);
33260
+ location.href = resp1.data || "/hbwebchat/scyxweb/ind-mobile/workBench";
33261
+ resolve(resp.token);
33262
+ console.log("location.href", location.href);
33263
+ return;
33264
+ });
33265
+ }, 0);
33255
33266
  }).catch((e) => {
33256
33267
  console.log("\u83B7\u53D6token\u5F02\u5E38", e);
33257
33268
  reject(0);
@@ -33317,11 +33328,13 @@ window.getQueryVariable = function getQueryVariable2(variable) {
33317
33328
  };
33318
33329
  const checkLogin = async () => {
33319
33330
  var _a, _b;
33331
+ console.log("checkLogin trigger");
33320
33332
  if (localStorage.getItem("whoisyourdaddy") == "1") {
33321
33333
  return Promise.resolve(true);
33322
33334
  }
33323
33335
  try {
33324
33336
  let token = getToken();
33337
+ console.log("checkLogin token", token);
33325
33338
  const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
33326
33339
  params: {},
33327
33340
  headers: {