Skip to content

Commit

Permalink
fix: qr code url on share
Browse files Browse the repository at this point in the history
  • Loading branch information
ramiresviana committed Mar 18, 2021
1 parent eeadc53 commit 22f4be8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frontend/src/views/Share.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<a target="_blank" :href="link" class="button button--flat">{{ $t('buttons.download') }}</a>
</div>
<div class="share__box__element share__box__center">
<qrcode-vue :value="link" size="200" level="M"></qrcode-vue>
<qrcode-vue :value="fullLink" size="200" level="M"></qrcode-vue>
</div>
</div>
<div v-if="req.isDir && req.items.length > 0" class="share__box share__box__items">
Expand Down Expand Up @@ -161,6 +161,9 @@ export default {
const path = this.$route.path.split('/').splice(2).join('/')
return `${baseURL}/api/public/dl/${path}${queryArg}`
},
fullLink: function () {
return window.location.origin + this.link
},
humanSize: function () {
if (this.req.isDir) {
return this.req.items.length
Expand Down

0 comments on commit 22f4be8

Please sign in to comment.