@indfnd/common-mobile 0.0.55 → 0.0.56
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 +7 -0
- package/dist/ind-common-mobile.es.js +44 -6
- package/dist/ind-common-mobile.umd.cjs +24 -24
- package/package.json +1 -1
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
|
+
### [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)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* 移动跳pc ([475967e](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/475967e3774f59decb8f90e79e36ce6b930d9bd4))
|
|
11
|
+
|
|
5
12
|
### [0.0.55](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.54...v0.0.55) (2024-10-16)
|
|
6
13
|
|
|
7
14
|
### [0.0.54](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.53...v0.0.54) (2024-08-28)
|
|
@@ -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.55";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -70608,10 +70608,9 @@ const pluginLogin = (store2) => {
|
|
|
70608
70608
|
store2.commit("setUserName", "");
|
|
70609
70609
|
store2.commit("setToken", "");
|
|
70610
70610
|
return new Promise((resolve, reject) => {
|
|
70611
|
-
|
|
70612
|
-
|
|
70613
|
-
|
|
70614
|
-
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
70611
|
+
const code2 = getQueryVariable("code");
|
|
70612
|
+
if (code2) {
|
|
70613
|
+
axios$3.get("/ind-uc-ext-server/sso/xtbg/auth/appLogin?code=" + code2).then(async (resp) => {
|
|
70615
70614
|
setToken(resp.token);
|
|
70616
70615
|
resolve(resp.token);
|
|
70617
70616
|
}).catch((e) => {
|
|
@@ -70623,9 +70622,48 @@ const pluginLogin = (store2) => {
|
|
|
70623
70622
|
});
|
|
70624
70623
|
reject(0);
|
|
70625
70624
|
});
|
|
70626
|
-
}
|
|
70625
|
+
} else {
|
|
70626
|
+
Code.postMessage("");
|
|
70627
|
+
window.getCode = function(res) {
|
|
70628
|
+
console.log("getCode res", res);
|
|
70629
|
+
axios$3.get("/ind-uc-ext-server/sso/ssoAppLogin?code=" + res).then(async (resp) => {
|
|
70630
|
+
setToken(resp.token);
|
|
70631
|
+
resolve(resp.token);
|
|
70632
|
+
}).catch((e) => {
|
|
70633
|
+
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
70634
|
+
Message.error({
|
|
70635
|
+
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",
|
|
70636
|
+
duration: 10,
|
|
70637
|
+
closable: true
|
|
70638
|
+
});
|
|
70639
|
+
reject(0);
|
|
70640
|
+
});
|
|
70641
|
+
};
|
|
70642
|
+
}
|
|
70627
70643
|
});
|
|
70628
70644
|
};
|
|
70645
|
+
window.getQueryVariable = function getQueryVariable2(variable) {
|
|
70646
|
+
var query = window.location.search.substring(1);
|
|
70647
|
+
var vars = query.split("&");
|
|
70648
|
+
for (let i = 0; i < vars.length; i++) {
|
|
70649
|
+
let pair = vars[i].split("=");
|
|
70650
|
+
if (pair[0] == variable) {
|
|
70651
|
+
return pair.slice(1).join("=");
|
|
70652
|
+
}
|
|
70653
|
+
}
|
|
70654
|
+
let routeHash = window.location.hash.substring(2);
|
|
70655
|
+
if (routeHash.includes("?")) {
|
|
70656
|
+
query = routeHash.split("?")[1];
|
|
70657
|
+
}
|
|
70658
|
+
vars = query.split("&");
|
|
70659
|
+
for (let i = 0; i < vars.length; i++) {
|
|
70660
|
+
let pair = vars[i].split("=");
|
|
70661
|
+
if (pair[0] == variable) {
|
|
70662
|
+
return pair.slice(1).join("=");
|
|
70663
|
+
}
|
|
70664
|
+
}
|
|
70665
|
+
return false;
|
|
70666
|
+
};
|
|
70629
70667
|
const checkLogin = async () => {
|
|
70630
70668
|
var _a;
|
|
70631
70669
|
try {
|