Skip to content

Commit 8c62271

Browse files
committed
fix(preview): show qrcode in preview dialog if open from work list
zh: 如果从作品列表中打开,显示二维码
1 parent cc1e525 commit 8c62271

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

front-end/h5/src/views/work-manager/list.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,8 @@ export default {
144144
}
145145
</a-row>
146146
{
147-
this.previewVisible &&
148147
<PreviewDialog
149-
work={this.activeWork}
148+
work={this.activeWork || {}}
150149
visible={this.previewVisible}
151150
handleClose={() => { this.previewVisible = false }}
152151
/>

front-end/h5/src/views/work-manager/templates.vue

+1-2
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,8 @@ export default {
138138
}
139139
</a-row>
140140
{
141-
this.previewVisible &&
142141
<PreviewDialog
143-
work={this.activeWork}
142+
work={this.activeWork || {}}
144143
visible={this.previewVisible}
145144
handleClose={() => { this.previewVisible = false }}
146145
/>

0 commit comments

Comments
 (0)