Skip to content

Commit 51f21d7

Browse files
committed
fix: #131
1 parent 7d501f3 commit 51f21d7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

front-end/h5/src/components/core/editor/modals/preview.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
// work: state => state.work
2323
// }),
2424
releaseUrl () {
25-
return `/works/preview/${this.work.id}`
25+
return `${window.location.origin}/works/preview/${this.work.id}`
2626
}
2727
},
2828
data () {

front-end/h5/src/views/work-manager/list.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const ListItemCard = {
3131
return displayTime
3232
},
3333
genQRCodeUrl (work) {
34-
const url = `/works/preview/${work.id}`
34+
const url = `${window.location.origin}/works/preview/${work.id}`
3535
QRCode.toDataURL(url, (err, url) => {
3636
if (err) console.log(err)
3737
this.qrcodeUrl = url

front-end/h5/src/views/work-manager/templates.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const ListItemCard = {
3535
return displayTime
3636
},
3737
genQRCodeUrl (work) {
38-
const url = `/works/preview/${work.id}`
38+
const url = `${window.location.origin}/works/preview/${work.id}`
3939
QRCode.toDataURL(url, (err, url) => {
4040
if (err) console.log(err)
4141
this.qrcodeUrl = url

0 commit comments

Comments
 (0)