Commit 8c62271637d3e8c1bc9c0417789322fbe79a992d
1 parent
cc1e5250
fix(preview): show qrcode in preview dialog if open from work list
zh: 如果从作品列表中打开,显示二维码
Showing
2 changed files
with
2 additions
and
4 deletions
front-end/h5/src/views/work-manager/list.vue
| @@ -144,9 +144,8 @@ export default { | @@ -144,9 +144,8 @@ export default { | ||
| 144 | } | 144 | } |
| 145 | </a-row> | 145 | </a-row> |
| 146 | { | 146 | { |
| 147 | - this.previewVisible && | ||
| 148 | <PreviewDialog | 147 | <PreviewDialog |
| 149 | - work={this.activeWork} | 148 | + work={this.activeWork || {}} |
| 150 | visible={this.previewVisible} | 149 | visible={this.previewVisible} |
| 151 | handleClose={() => { this.previewVisible = false }} | 150 | handleClose={() => { this.previewVisible = false }} |
| 152 | /> | 151 | /> |
front-end/h5/src/views/work-manager/templates.vue
| @@ -138,9 +138,8 @@ export default { | @@ -138,9 +138,8 @@ export default { | ||
| 138 | } | 138 | } |
| 139 | </a-row> | 139 | </a-row> |
| 140 | { | 140 | { |
| 141 | - this.previewVisible && | ||
| 142 | <PreviewDialog | 141 | <PreviewDialog |
| 143 | - work={this.activeWork} | 142 | + work={this.activeWork || {}} |
| 144 | visible={this.previewVisible} | 143 | visible={this.previewVisible} |
| 145 | handleClose={() => { this.previewVisible = false }} | 144 | handleClose={() => { this.previewVisible = false }} |
| 146 | /> | 145 | /> |