fix: qr code url on share
This commit is contained in:
parent
eeadc532fe
commit
22f4be8f54
|
@ -31,7 +31,7 @@
|
||||||
<a target="_blank" :href="link" class="button button--flat">{{ $t('buttons.download') }}</a>
|
<a target="_blank" :href="link" class="button button--flat">{{ $t('buttons.download') }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="share__box__element share__box__center">
|
<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>
|
</div>
|
||||||
<div v-if="req.isDir && req.items.length > 0" class="share__box share__box__items">
|
<div v-if="req.isDir && req.items.length > 0" class="share__box share__box__items">
|
||||||
|
@ -161,6 +161,9 @@ export default {
|
||||||
const path = this.$route.path.split('/').splice(2).join('/')
|
const path = this.$route.path.split('/').splice(2).join('/')
|
||||||
return `${baseURL}/api/public/dl/${path}${queryArg}`
|
return `${baseURL}/api/public/dl/${path}${queryArg}`
|
||||||
},
|
},
|
||||||
|
fullLink: function () {
|
||||||
|
return window.location.origin + this.link
|
||||||
|
},
|
||||||
humanSize: function () {
|
humanSize: function () {
|
||||||
if (this.req.isDir) {
|
if (this.req.isDir) {
|
||||||
return this.req.items.length
|
return this.req.items.length
|
||||||
|
|
Loading…
Reference in New Issue