fix: 401 error in share view open file button (#1495)
parent
aa52b07bb1
commit
25c8788390
|
@ -93,7 +93,7 @@
|
|||
</a>
|
||||
<a
|
||||
target="_blank"
|
||||
:href="link + '?inline=true'"
|
||||
:href="inlineLink"
|
||||
class="button button--flat"
|
||||
v-if="!req.isDir"
|
||||
>
|
||||
|
@ -239,6 +239,11 @@ export default {
|
|||
const path = this.$route.path.split("/").splice(2).join("/");
|
||||
return `${baseURL}/api/public/dl/${path}${queryArg}`;
|
||||
},
|
||||
inlineLink: function () {
|
||||
let url = new URL(this.link);
|
||||
url.searchParams.set("inline", "true");
|
||||
return url.href;
|
||||
},
|
||||
fullLink: function () {
|
||||
return window.location.origin + this.link;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue