Skip to content

Commit 929c568

Browse files
zwx-masterpeacewong
authored andcommitted
Fixed Python result set not showing
1 parent 56e9819 commit 929c568

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@
1717
:style="{'height': resultHeight}"
1818
class="text-result-div">
1919
<div v-if="result.bodyRows">
20-
<div
21-
v-for="(row, index) in result.bodyRows.split('\n')"
22-
:key="index">{{ row }}</div>
20+
<!-- 数据格式不统一,先循环外部数据,再循环内部 -->
21+
<div v-for="(item,index) in result.bodyRows" :key="index">
22+
<div
23+
v-for="(row, subindex) in item[0].split('\n')"
24+
:key="subindex">{{ row }}</div>
25+
</div>
2326
</div>
2427
<span
2528
v-else

0 commit comments

Comments
 (0)