style:家庭房产
Showing
1 changed file
with
8 additions
and
6 deletions
| ... | @@ -99,12 +99,11 @@ | ... | @@ -99,12 +99,11 @@ |
| 99 | newDatez: getNewDate(2) | 99 | newDatez: getNewDate(2) |
| 100 | } | 100 | } |
| 101 | }, | 101 | }, |
| 102 | mounted () { | 102 | watch: { |
| 103 | this.generateQRCode() | 103 | "form.djSqcxDO.cxbh": { |
| 104 | }, | 104 | handler: function (val) { |
| 105 | methods: { | 105 | if (val) { |
| 106 | generateQRCode () { | 106 | QRCode.toDataURL(val) |
| 107 | QRCode.toDataURL(this.form.djSqcxDO.cxbh) | ||
| 108 | .then(url => { | 107 | .then(url => { |
| 109 | this.qrcodeImage = url | 108 | this.qrcodeImage = url |
| 110 | }) | 109 | }) |
| ... | @@ -112,6 +111,9 @@ | ... | @@ -112,6 +111,9 @@ |
| 112 | console.error(error); | 111 | console.error(error); |
| 113 | }) | 112 | }) |
| 114 | } | 113 | } |
| 114 | }, | ||
| 115 | immediate: true | ||
| 116 | } | ||
| 115 | } | 117 | } |
| 116 | } | 118 | } |
| 117 | </script> | 119 | </script> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment