Commit b4fa640384c5017e395c43e390f859c1c044e1b1
1 parent
b863cfb9
perf: DEFECT-931 different platform set different default option
Showing
1 changed file
with
3 additions
and
1 deletions
... | ... | @@ -4230,17 +4230,19 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { |
4230 | 4230 | // } |
4231 | 4231 | }) |
4232 | 4232 | } |
4233 | + var pageFormat = this.editor.graph.pageFormat | |
4233 | 4234 | |
4234 | 4235 | // 调用API,获取保存的内容 |
4235 | 4236 | function getSaveContent() { |
4236 | 4237 | defHttp.get('/yt/configuration/center/get_configuration_info/' + Editor.configurationId) |
4237 | 4238 | .then(function (response) { |
4238 | 4239 | getUserPermission() |
4239 | - | |
4240 | 4240 | const { platform } = response || {} |
4241 | 4241 | const pageSizeControl = PageSetupDialog.getFormats |
4242 | 4242 | PageSetupDialog.getFormats = function () { |
4243 | 4243 | if (platform === 'phone') { |
4244 | + pageFormat.width = 415 | |
4245 | + pageFormat.height = 737 | |
4244 | 4246 | return [ |
4245 | 4247 | { key: 'iPhone 8', title: 'iPhone 8', format: new mxRectangle(0, 0, 375, 667) }, |
4246 | 4248 | { key: 'iPhone 8 Plus', title: 'iPhone 8 Plus', format: new mxRectangle(0, 0, 415, 737) }, | ... | ... |