Commit 8c62271637d3e8c1bc9c0417789322fbe79a992d

Authored by ly525
1 parent cc1e5250

fix(preview): show qrcode in preview dialog if open from work list

zh: 如果从作品列表中打开,显示二维码
front-end/h5/src/views/work-manager/list.vue
... ... @@ -144,9 +144,8 @@ export default {
144 144 }
145 145 </a-row>
146 146 {
147   - this.previewVisible &&
148 147 <PreviewDialog
149   - work={this.activeWork}
  148 + work={this.activeWork || {}}
150 149 visible={this.previewVisible}
151 150 handleClose={() => { this.previewVisible = false }}
152 151 />
... ...
front-end/h5/src/views/work-manager/templates.vue
... ... @@ -138,9 +138,8 @@ export default {
138 138 }
139 139 </a-row>
140 140 {
141   - this.previewVisible &&
142 141 <PreviewDialog
143   - work={this.activeWork}
  142 + work={this.activeWork || {}}
144 143 visible={this.previewVisible}
145 144 handleClose={() => { this.previewVisible = false }}
146 145 />
... ...