Skip to content

Commit a9d0802

Browse files
committed
OpenFile interface data modification
1 parent e0546fd commit a9d0802

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

web/src/js/module/process/module.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ export default {
16351635
const fileName = `${time.getTime()}${match.ext}`;
16361636
const params = {
16371637
fileName,
1638-
scriptContent: rst.fileContent,
1638+
scriptContent: rst.fileContent[0][0],
16391639
metadata: rst.params,
16401640
};
16411641
api.fetch('/filesystem/saveScriptToBML', params, 'post')

web/src/js/module/workbench/container.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,13 @@ export default {
441441
api.fetch('/filesystem/openFile', {
442442
path: option.path,
443443
}, 'get').then((rst) => {
444-
const ismodifyByOldTab = option.code && !rst.fileContent;
444+
const ismodifyByOldTab = option.code && !rst.fileContent[0][0];
445445
const params = ismodifyByOldTab ? option.params : this.convertSettingParams(rst.params);
446446
this[methodName]({
447447
id: md5Path,
448448
filename: option.filename,
449449
filepath: option.path,
450-
code: rst.fileContent || option.code,
450+
code: rst.fileContent[0][0] || option.code,
451451
params,
452452
type: option.type,
453453
saveAs: option.saveAs || false,

web/src/js/module/workbench/script/result.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
v-else-if="result.type === '5'"
7979
:style="{'height': resultHeight}"
8080
class="html-result-div"
81-
v-html="result.bodyRows"/>
81+
v-html="result.bodyRows[0][0]"/>
8282
<span
8383
v-else
8484
class="empty-text">{{ $t('message.workBench.body.script.result.emptyText') }}</span>

0 commit comments

Comments
 (0)