Commit 51f21d7 1 parent 7d501f3 commit 51f21d7 Copy full SHA for 51f21d7
File tree 3 files changed +3
-3
lines changed
components/core/editor/modals
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export default {
22
22
// work: state => state.work
23
23
// }),
24
24
releaseUrl () {
25
- return ` /works/preview/${ this .work .id } `
25
+ return ` ${ window . location . origin } /works/preview/${ this .work .id } `
26
26
}
27
27
},
28
28
data () {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ const ListItemCard = {
31
31
return displayTime
32
32
},
33
33
genQRCodeUrl (work ) {
34
- const url = ` /works/preview/${ work .id } `
34
+ const url = ` ${ window . location . origin } /works/preview/${ work .id } `
35
35
QRCode .toDataURL (url, (err , url ) => {
36
36
if (err) console .log (err)
37
37
this .qrcodeUrl = url
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const ListItemCard = {
35
35
return displayTime
36
36
},
37
37
genQRCodeUrl (work ) {
38
- const url = ` /works/preview/${ work .id } `
38
+ const url = ` ${ window . location . origin } /works/preview/${ work .id } `
39
39
QRCode .toDataURL (url, (err , url ) => {
40
40
if (err) console .log (err)
41
41
this .qrcodeUrl = url
You can’t perform that action at this time.
0 commit comments