Commit b6251e1f3a4ba0bec91f88f3310ae40c6c365ba2

Authored by ww
1 parent 3024c4ca

fix: select page size problem

@@ -5042,11 +5042,10 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { @@ -5042,11 +5042,10 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) {
5042 defHttp.get('/yt/configuration/center/getConfigurationInfo/'+Editor.configurationId) 5042 defHttp.get('/yt/configuration/center/getConfigurationInfo/'+Editor.configurationId)
5043 .then(function (response) { 5043 .then(function (response) {
5044 console.log({response}) 5044 console.log({response})
5045 - const { configurationContentList: [ data = {}] = [] } = response || {}  
5046 - const phoneFlag = data.platform 5045 + const { platform } = response || {}
5047 const pageSizeControl = PageSetupDialog.getFormats 5046 const pageSizeControl = PageSetupDialog.getFormats
5048 PageSetupDialog.getFormats = function () { 5047 PageSetupDialog.getFormats = function () {
5049 - if (phoneFlag === 'phone') { 5048 + if (platform === 'phone') {
5050 return [ 5049 return [
5051 {key: 'iPhone 8', title: 'iPhone 8', format: new mxRectangle(0, 0, 375, 667)}, 5050 {key: 'iPhone 8', title: 'iPhone 8', format: new mxRectangle(0, 0, 375, 667)},
5052 {key: 'iPhone 8 Plus', title: 'iPhone 8 Plus', format: new mxRectangle(0, 0, 415, 737)}, 5051 {key: 'iPhone 8 Plus', title: 'iPhone 8 Plus', format: new mxRectangle(0, 0, 415, 737)},