@indfnd/common-mobile 0.0.32 → 0.0.34
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 +11 -4
- package/dist/ind-common-mobile.umd.cjs +28 -28
- 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.34](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.33...v0.0.34) (2024-06-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* 增加了一些日志 ([b06a142](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/b06a1426f1f30661a914b2d6ab4e4ddc0a8701ec))
|
|
11
|
+
|
|
12
|
+
### [0.0.33](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.32...v0.0.33) (2024-06-17)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* 生产登录 ([c247763](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/c24776398fbd87fabba19a2b74400ae72163e323))
|
|
18
|
+
|
|
5
19
|
### [0.0.32](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v0.0.31...v0.0.32) (2024-06-16)
|
|
6
20
|
|
|
7
21
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getQuarterNum, getHalfYearNum, getHalfYear, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$3, getCaptchaURL, guid, setLocalStorage, clearSessionStorage, cryptor, listComTreeApi, config as config$1, getSessionStorage, getToken, setToken
|
|
1
|
+
import { getQuarterNum, getHalfYearNum, getHalfYear, formatDate, useConfig, getLocalStorage, checkIdCard, checkVehicleNo, checkPhone, getDictMapApi, axios as axios$3, getCaptchaURL, guid, setLocalStorage, clearSessionStorage, cryptor, listComTreeApi, config as config$1, getSessionStorage, getToken, setToken, loginApi, clearUserInfoCache, clearPermissionCache, logoutApi, getUserInfoCache, getUserInfoApi, setUserInfoCache, setSessionStorage, getAppListApi, getPermissionCache, getPermissionApi, setPermissionCache, menuHistoryApi, addMenuCollectApi, removeMenuCollectApi } from "@indfnd/utils";
|
|
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.33";
|
|
6
6
|
const author$1 = "huxuetong";
|
|
7
7
|
const publishConfig = {
|
|
8
8
|
registry: "https://registry.npmjs.org/"
|
|
@@ -70313,12 +70313,18 @@ const pluginLogin = (store2) => {
|
|
|
70313
70313
|
resolve(resp.token);
|
|
70314
70314
|
}).catch((e) => {
|
|
70315
70315
|
console.log("\u83B7\u53D6token\u5F02\u5E38", e);
|
|
70316
|
+
Message.error({
|
|
70317
|
+
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",
|
|
70318
|
+
duration: 10,
|
|
70319
|
+
closable: true
|
|
70320
|
+
});
|
|
70316
70321
|
reject(0);
|
|
70317
70322
|
});
|
|
70318
70323
|
};
|
|
70319
70324
|
});
|
|
70320
70325
|
};
|
|
70321
70326
|
const checkLogin = async () => {
|
|
70327
|
+
var _a;
|
|
70322
70328
|
try {
|
|
70323
70329
|
let token = getToken();
|
|
70324
70330
|
const resp = await axios.get(`${config.authServerContext}/manage/user/getCurrentInfo`, {
|
|
@@ -70327,9 +70333,10 @@ const checkLogin = async () => {
|
|
|
70327
70333
|
token
|
|
70328
70334
|
}
|
|
70329
70335
|
});
|
|
70330
|
-
return resp.data.code == 1;
|
|
70336
|
+
return ((_a = resp.data) == null ? void 0 : _a.code) == 1;
|
|
70331
70337
|
} catch (e) {
|
|
70332
70338
|
console.log("getLoginData e", e);
|
|
70339
|
+
Message.error({ content: "\u6821\u9A8C\u4F1A\u8BDD\u5F02\u5E38\uFF01", duration: 10, closable: true });
|
|
70333
70340
|
return false;
|
|
70334
70341
|
}
|
|
70335
70342
|
};
|
|
@@ -70356,7 +70363,7 @@ var user = {
|
|
|
70356
70363
|
},
|
|
70357
70364
|
setToken(state, token) {
|
|
70358
70365
|
state.token = token;
|
|
70359
|
-
setToken
|
|
70366
|
+
setToken(token);
|
|
70360
70367
|
}
|
|
70361
70368
|
},
|
|
70362
70369
|
actions: {
|