style:家庭房产
Showing
1 changed file
with
14 additions
and
12 deletions
... | @@ -99,18 +99,20 @@ | ... | @@ -99,18 +99,20 @@ |
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) | 107 | .then(url => { |
108 | .then(url => { | 108 | this.qrcodeImage = url |
109 | this.qrcodeImage = url | 109 | }) |
110 | }) | 110 | .catch(error => { |
111 | .catch(error => { | 111 | console.error(error); |
112 | console.error(error); | 112 | }) |
113 | }) | 113 | } |
114 | }, | ||
115 | immediate: true | ||
114 | } | 116 | } |
115 | } | 117 | } |
116 | } | 118 | } | ... | ... |
-
Please register or sign in to post a comment