@indfnd/common-mobile 0.0.57 → 0.0.59
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 +14 -0
- package/dist/ind-common-mobile.es.js +45 -7
- package/dist/ind-common-mobile.umd.cjs +24 -24
- package/package.json +1 -1
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.59](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.58...v0.0.59) (2024-11-12)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 山东生产环境要去掉登录页的路由 ([7960bc3](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/7960bc3b163c5dbd096a9d84b78620f3b35856b9))
|
|
11
|
+
|
|
12
|
+
### [0.0.58](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.57...v0.0.58) (2024-11-11)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* 山东生产环境要去掉登录页的路由 ([3714cb9](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/3714cb93ba23754200bb8c527988438121b585a2))
|
|
18
|
+
|
|
5
19
|
### [0.0.57](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.56...v0.0.57) (2024-11-11)
|
|
6
20
|
|
|
7
21
|
### [0.0.56](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.55...v0.0.56) (2024-11-11)
|
|
@@ -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.
|
|
5
|
+
const version$2 = "0.0.58";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -69126,7 +69126,7 @@ function createMacroBasicRoutes({ homeComponent, rootChildren } = {}) {
|
|
|
69126
69126
|
if (rootChildren && rootChildren.length) {
|
|
69127
69127
|
rootRouteTemp.children.push(...rootChildren);
|
|
69128
69128
|
}
|
|
69129
|
-
let loginRoutes = location.host.includes("localhost") ? [] : [
|
|
69129
|
+
let loginRoutes = location.host.includes("localhost") ? [loginRoute] : [];
|
|
69130
69130
|
return [
|
|
69131
69131
|
rootRouteTemp,
|
|
69132
69132
|
...loginRoutes,
|
|
@@ -70609,10 +70609,9 @@ const pluginLogin = (store2) => {
|
|
|
70609
70609
|
store2.commit("setUserName", "");
|
|
70610
70610
|
store2.commit("setToken", "");
|
|
70611
70611
|
return new Promise((resolve, reject) => {
|
|
70612
|
-
|
|
70613
|
-
|
|
70614
|
-
|
|
70615
|
-
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
70612
|
+
const code2 = getQueryVariable("code");
|
|
70613
|
+
if (code2) {
|
|
70614
|
+
axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
|
|
70616
70615
|
setToken(resp.token);
|
|
70617
70616
|
resolve(resp.token);
|
|
70618
70617
|
}).catch((e) => {
|
|
@@ -70624,9 +70623,48 @@ const pluginLogin = (store2) => {
|
|
|
70624
70623
|
});
|
|
70625
70624
|
reject(0);
|
|
70626
70625
|
});
|
|
70627
|
-
}
|
|
70626
|
+
} else {
|
|
70627
|
+
Code.postMessage("");
|
|
70628
|
+
window.getCode = function(res) {
|
|
70629
|
+
console.log("getCode res", res);
|
|
70630
|
+
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
70631
|
+
setToken(resp.token);
|
|
70632
|
+
resolve(resp.token);
|
|
70633
|
+
}).catch((e) => {
|
|
70634
|
+
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
70635
|
+
Message.error({
|
|
70636
|
+
content: "\u8C03\u7528\u5355\u70B9\u767B\u5F55\u670D\u52A1\u767B\u5F55\u5F02\u5E38\uFF0C\u8BF7\u8FD4\u56DE\u79FB\u52A8\u95E8\u6237\u91CD\u65B0\u767B\u5F55\uFF01",
|
|
70637
|
+
duration: 10,
|
|
70638
|
+
closable: true
|
|
70639
|
+
});
|
|
70640
|
+
reject(0);
|
|
70641
|
+
});
|
|
70642
|
+
};
|
|
70643
|
+
}
|
|
70628
70644
|
});
|
|
70629
70645
|
};
|
|
70646
|
+
window.getQueryVariable = function getQueryVariable2(variable) {
|
|
70647
|
+
var query = window.location.search.substring(1);
|
|
70648
|
+
var vars = query.split("&");
|
|
70649
|
+
for (let i = 0; i < vars.length; i++) {
|
|
70650
|
+
let pair = vars[i].split("=");
|
|
70651
|
+
if (pair[0] == variable) {
|
|
70652
|
+
return pair.slice(1).join("=");
|
|
70653
|
+
}
|
|
70654
|
+
}
|
|
70655
|
+
let routeHash = window.location.hash.substring(2);
|
|
70656
|
+
if (routeHash.includes("?")) {
|
|
70657
|
+
query = routeHash.split("?")[1];
|
|
70658
|
+
}
|
|
70659
|
+
vars = query.split("&");
|
|
70660
|
+
for (let i = 0; i < vars.length; i++) {
|
|
70661
|
+
let pair = vars[i].split("=");
|
|
70662
|
+
if (pair[0] == variable) {
|
|
70663
|
+
return pair.slice(1).join("=");
|
|
70664
|
+
}
|
|
70665
|
+
}
|
|
70666
|
+
return false;
|
|
70667
|
+
};
|
|
70630
70668
|
const checkLogin = async () => {
|
|
70631
70669
|
var _a;
|
|
70632
70670
|
try {
|