ecinc-cloud-mappaio 9.7.9 → 9.7.10
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/lib/ecmappaio.common.js
CHANGED
|
@@ -1027,22 +1027,22 @@ var actions = {
|
|
|
1027
1027
|
state = _ref5.state;
|
|
1028
1028
|
return new Promise( /*#__PURE__*/function () {
|
|
1029
1029
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(resolve) {
|
|
1030
|
-
var jwtToken,
|
|
1030
|
+
var jwtToken, loginUser;
|
|
1031
1031
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
1032
1032
|
while (1) switch (_context3.prev = _context3.next) {
|
|
1033
1033
|
case 0:
|
|
1034
|
-
jwtToken = inJwtToken || window.$auth.getToken();
|
|
1035
|
-
|
|
1036
|
-
if (!((!state.loginUser.userId || !state.productCodeAll || inJwtToken || tokenChanged) && jwtToken)) {
|
|
1034
|
+
jwtToken = inJwtToken || window.$auth.getToken();
|
|
1035
|
+
if (!((!state.loginUser.userId || !state.productCodeAll || inJwtToken) && jwtToken)) {
|
|
1037
1036
|
_context3.next = 11;
|
|
1038
1037
|
break;
|
|
1039
1038
|
}
|
|
1040
|
-
_context3.next =
|
|
1039
|
+
_context3.next = 4;
|
|
1041
1040
|
return window.$user.getLoginUser(jwtToken);
|
|
1042
|
-
case
|
|
1041
|
+
case 4:
|
|
1043
1042
|
loginUser = _context3.sent;
|
|
1044
1043
|
commit('SET_TOKEN', window.$auth.getToken());
|
|
1045
1044
|
commit('SET_LOGIN_USER', loginUser);
|
|
1045
|
+
window.$auth.removeTicket();
|
|
1046
1046
|
window.$user.findUserRolePermissions().then(function (response) {
|
|
1047
1047
|
if (response.code === 'success') {
|
|
1048
1048
|
var data = response.body;
|
package/lib/ecmappaio.umd.js
CHANGED
|
@@ -1037,22 +1037,22 @@ var actions = {
|
|
|
1037
1037
|
state = _ref5.state;
|
|
1038
1038
|
return new Promise( /*#__PURE__*/function () {
|
|
1039
1039
|
var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(resolve) {
|
|
1040
|
-
var jwtToken,
|
|
1040
|
+
var jwtToken, loginUser;
|
|
1041
1041
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
1042
1042
|
while (1) switch (_context3.prev = _context3.next) {
|
|
1043
1043
|
case 0:
|
|
1044
|
-
jwtToken = inJwtToken || window.$auth.getToken();
|
|
1045
|
-
|
|
1046
|
-
if (!((!state.loginUser.userId || !state.productCodeAll || inJwtToken || tokenChanged) && jwtToken)) {
|
|
1044
|
+
jwtToken = inJwtToken || window.$auth.getToken();
|
|
1045
|
+
if (!((!state.loginUser.userId || !state.productCodeAll || inJwtToken) && jwtToken)) {
|
|
1047
1046
|
_context3.next = 11;
|
|
1048
1047
|
break;
|
|
1049
1048
|
}
|
|
1050
|
-
_context3.next =
|
|
1049
|
+
_context3.next = 4;
|
|
1051
1050
|
return window.$user.getLoginUser(jwtToken);
|
|
1052
|
-
case
|
|
1051
|
+
case 4:
|
|
1053
1052
|
loginUser = _context3.sent;
|
|
1054
1053
|
commit('SET_TOKEN', window.$auth.getToken());
|
|
1055
1054
|
commit('SET_LOGIN_USER', loginUser);
|
|
1055
|
+
window.$auth.removeTicket();
|
|
1056
1056
|
window.$user.findUserRolePermissions().then(function (response) {
|
|
1057
1057
|
if (response.code === 'success') {
|
|
1058
1058
|
var data = response.body;
|