Commit 1597d420005474ee779a7f3d76c1ac2ee03a4c4b
1 parent
0c2dc4f9
v1.9 解决巡检点二维码打开bug
Showing
2 changed files
with
2 additions
and
5 deletions
src/components/inspection/inspectionPointQrCode.vue
| ... | ... | @@ -36,7 +36,7 @@ export default { |
| 36 | 36 | open(inspectionPoint) { |
| 37 | 37 | this.dialogVisible = true |
| 38 | 38 | this.inspectionPointQrCodeInfo = { |
| 39 | - url: this.generateQrUrl(inspectionPoint), | |
| 39 | + url: inspectionPoint.url, | |
| 40 | 40 | inspectionName: inspectionPoint.inspectionName |
| 41 | 41 | } |
| 42 | 42 | |
| ... | ... | @@ -45,10 +45,6 @@ export default { |
| 45 | 45 | }) |
| 46 | 46 | }, |
| 47 | 47 | |
| 48 | - generateQrUrl(inspectionPoint) { | |
| 49 | - // 这里根据实际业务生成二维码URL | |
| 50 | - return `${window.location.origin}/inspection/task?inspectionId=${inspectionPoint.inspectionId}&communityId=${this.communityId}` | |
| 51 | - }, | |
| 52 | 48 | |
| 53 | 49 | generateQrCode() { |
| 54 | 50 | // 清除现有的二维码 | ... | ... |
src/views/inspection/inspectionPointList.vue