fix: title pre name

This commit is contained in:
古大羊 2024-05-07 20:32:00 +08:00
parent 3bab97e3a2
commit 255c5e0a5a
1 changed files with 4 additions and 1 deletions

View File

@ -45,6 +45,8 @@ import { useI18n } from "vue-i18n";
import { useRoute } from "vue-router";
import FileListing from "@/views/files/FileListing.vue";
import { StatusError } from "@/api/utils";
import { name } from "../utils/constants";
const Editor = defineAsyncComponent(() => import("@/views/files/Editor.vue"));
const Preview = defineAsyncComponent(() => import("@/views/files/Preview.vue"));
@ -148,7 +150,8 @@ const fetchData = async () => {
}
fileStore.updateRequest(res);
document.title = `${res.name} - ${t("files.files")} - File Browser`;
document.title = `${res.name} - ${t("files.files")} - ${name}`;
} catch (err) {
if (err instanceof Error) {
error.value = err;