fix: share page preview items to contain baseUrl (#5510)
Co-authored-by: jagadam97 <dineshjagadam@hmail.com>chore/update-docker-goreleaser
parent
291223b3ce
commit
6950c2e4d2
|
|
@ -1,5 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<select name="selectAceEditorTheme" v-on:change="change" :value="aceEditorTheme">
|
<select
|
||||||
|
name="selectAceEditorTheme"
|
||||||
|
v-on:change="change"
|
||||||
|
:value="aceEditorTheme"
|
||||||
|
>
|
||||||
<option v-for="theme in themes" :value="theme.theme" :key="theme.theme">
|
<option v-for="theme in themes" :value="theme.theme" :key="theme.theme">
|
||||||
{{ theme.name }}
|
{{ theme.name }}
|
||||||
</option>
|
</option>
|
||||||
|
|
|
||||||
|
|
@ -301,7 +301,7 @@ import { pub as api } from "@/api";
|
||||||
import { filesize } from "@/utils";
|
import { filesize } from "@/utils";
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
import { Base64 } from "js-base64";
|
import { Base64 } from "js-base64";
|
||||||
|
import { createURL } from "@/api/utils";
|
||||||
import HeaderBar from "@/components/header/HeaderBar.vue";
|
import HeaderBar from "@/components/header/HeaderBar.vue";
|
||||||
import Action from "@/components/header/Action.vue";
|
import Action from "@/components/header/Action.vue";
|
||||||
import Breadcrumbs from "@/components/Breadcrumbs.vue";
|
import Breadcrumbs from "@/components/Breadcrumbs.vue";
|
||||||
|
|
@ -354,14 +354,11 @@ const icon = computed(() => {
|
||||||
|
|
||||||
const link = computed(() => (req.value ? api.getDownloadURL(req.value) : ""));
|
const link = computed(() => (req.value ? api.getDownloadURL(req.value) : ""));
|
||||||
const raw = computed(() => {
|
const raw = computed(() => {
|
||||||
return req.value
|
if (!req.value || !req.value.items[fileStore.selected[0]]) return "";
|
||||||
? req.value.items[fileStore.selected[0]].url.replace(
|
return createURL(
|
||||||
/share/,
|
`api/public/dl/${hash.value}${req.value.items[fileStore.selected[0]].path}`,
|
||||||
"api/public/dl"
|
{ token: token.value }
|
||||||
) +
|
);
|
||||||
"?token=" +
|
|
||||||
token.value
|
|
||||||
: "";
|
|
||||||
});
|
});
|
||||||
const inlineLink = computed(() =>
|
const inlineLink = computed(() =>
|
||||||
req.value ? api.getDownloadURL(req.value, true) : ""
|
req.value ? api.getDownloadURL(req.value, true) : ""
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue