🐛 Fixing a bug. #1241 流程管理中 新增流程图保存时租户信息会自动变为1
This commit is contained in:
1 parent
65c4d10630
commit
4725c30dfc
3 files changed
+9
-9
No files matched your search
@@ -95,8 +95,8 @@ activitiModeler
|
||||
/* Helper method to fetch model from server (always needed) */
|
||||
function fetchModel(modelId) {
|
||||
var tenantId = 1
|
||||
if (sessionStorage.getItem('tenantId')) {
|
||||
tenantId = sessionStorage.getItem('tenantId')
|
||||
if (localStorage.getItem('pigx-tenantId')) {
|
||||
tenantId = JSON.parse(localStorage.getItem('pigx-tenantId')).content
|
||||
}
|
||||
|
||||
var modelUrl = KISBPM.URL.getModel(modelId);
|
||||
@@ -104,7 +104,7 @@ activitiModeler
|
||||
$http({method: 'GET',
|
||||
url: modelUrl,
|
||||
headers: {
|
||||
'TENANT_ID': tenantId
|
||||
'TENANT-ID': tenantId
|
||||
}
|
||||
}).
|
||||
success(function (data, status, headers, config) {
|
||||
|
||||
+3
-3
@@ -378,8 +378,8 @@ var SaveModelCtrl = [ '$rootScope', '$scope', '$http', '$route', '$location',
|
||||
};
|
||||
|
||||
var tenantId = 1
|
||||
if (sessionStorage.getItem('tenantId')) {
|
||||
tenantId = sessionStorage.getItem('tenantId')
|
||||
if (localStorage.getItem('pigx-tenantId')) {
|
||||
tenantId = JSON.parse(localStorage.getItem('pigx-tenantId')).content
|
||||
}
|
||||
|
||||
// Update
|
||||
@@ -389,7 +389,7 @@ var SaveModelCtrl = [ '$rootScope', '$scope', '$http', '$route', '$location',
|
||||
headers: {
|
||||
'Accept': 'application/json',
|
||||
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
|
||||
'TENANT_ID': tenantId
|
||||
'TENANT-ID': tenantId
|
||||
},
|
||||
transformRequest: function (obj) {
|
||||
var str = [];
|
||||
|
||||
+3
-3
@@ -63,14 +63,14 @@ angular.module('activitiModeler')
|
||||
StencilSet items
|
||||
*/
|
||||
var tenantId = 1
|
||||
if (sessionStorage.getItem('tenantId')) {
|
||||
tenantId = sessionStorage.getItem('tenantId')
|
||||
if (localStorage.getItem('pigx-tenantId')) {
|
||||
tenantId = JSON.parse(localStorage.getItem('pigx-tenantId')).content
|
||||
}
|
||||
|
||||
$http({method: 'GET',
|
||||
url: KISBPM.URL.getStencilSet(),
|
||||
headers: {
|
||||
'TENANT_ID': tenantId
|
||||
'TENANT-ID': tenantId
|
||||
}
|
||||
}).success(function (data, status, headers, config) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user