fix 修复设计器无法编辑问题

This commit is contained in:
gssong 2023-07-30 21:46:10 +08:00
parent 1367507baf
commit dc20386b7f

View File

@ -399,8 +399,12 @@ angular.module('flowableModeler').controller('SaveModelCtrl', [ '$rootScope', '$
$http({ method: 'POST', $http({ method: 'POST',
data: params, data: params,
ignoreErrors: true, ignoreErrors: true,
headers: {'Accept': 'application/json', headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}, 'Accept': 'application/json',
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
'Authorization': 'Bearer '+window.parent.this.token,
'clientid': window.parent.this.clientid
},
transformRequest: function (obj) { transformRequest: function (obj) {
var str = []; var str = [];
for (var p in obj) { for (var p in obj) {
@ -416,6 +420,11 @@ angular.module('flowableModeler').controller('SaveModelCtrl', [ '$rootScope', '$
$scope.status.loading = false; $scope.status.loading = false;
return false return false
} }
if(data.code === 200){
alert("保存成功!")
$scope.status.loading = false;
return true
}
editorManager.handleEvents({ editorManager.handleEvents({
type: ORYX.CONFIG.EVENT_SAVED type: ORYX.CONFIG.EVENT_SAVED
}); });