fix: share page preview items to contain baseUrl (#5510)

Co-authored-by: jagadam97 <dineshjagadam@hmail.com>
chore/update-docker-goreleaser
Jagadam Dinesh Reddy 2025-11-11 12:39:19 +05:30 committed by GitHub
parent 291223b3ce
commit 6950c2e4d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 10 deletions

View File

@ -1,5 +1,9 @@
<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">
{{ theme.name }}
</option>

View File

@ -301,7 +301,7 @@ import { pub as api } from "@/api";
import { filesize } from "@/utils";
import dayjs from "dayjs";
import { Base64 } from "js-base64";
import { createURL } from "@/api/utils";
import HeaderBar from "@/components/header/HeaderBar.vue";
import Action from "@/components/header/Action.vue";
import Breadcrumbs from "@/components/Breadcrumbs.vue";
@ -354,14 +354,11 @@ const icon = computed(() => {
const link = computed(() => (req.value ? api.getDownloadURL(req.value) : ""));
const raw = computed(() => {
return req.value
? req.value.items[fileStore.selected[0]].url.replace(
/share/,
"api/public/dl"
) +
"?token=" +
token.value
: "";
if (!req.value || !req.value.items[fileStore.selected[0]]) return "";
return createURL(
`api/public/dl/${hash.value}${req.value.items[fileStore.selected[0]].path}`,
{ token: token.value }
);
});
const inlineLink = computed(() =>
req.value ? api.getDownloadURL(req.value, true) : ""