Selaa lähdekoodia

修复新建脑图保存出错的问题

unknown 5 vuotta sitten
vanhempi
commit
b98bfeb0b6
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      o2web/source/x_component_MinderEditor/MainMenu.js

+ 3 - 1
o2web/source/x_component_MinderEditor/MainMenu.js

@@ -385,10 +385,12 @@ MWF.xApplication.MinderEditor.MainMenu = new Class({
             formData.append('file', img, title+".png");
             formData.append('site', id);
 
+            debugger;
+
             MWF.xDesktop.uploadImageByScale( id, "mindInfo", -1, formData, img,
                 function(json){
                     var url = o2.Actions.load("x_file_assemble_control").FileAction.action.actions.downloadStream.uri.replace( "{id}", json.data.id );
-                    url = o2.filterUrl( o2.Actions.load("x_file_assemble_control").FileAction.action.address + url);
+                    url = o2.filterUrl( o2.Actions.load("x_file_assemble_control").FileAction.action.getAddress() + url);
                     window.open(url);
                 }.bind(this)
             );