From 86a855e7bcf111626cadc768029e3dc7509011d4 Mon Sep 17 00:00:00 2001 From: josc146 Date: Thu, 30 Nov 2023 21:48:14 +0800 Subject: [PATCH] fix damaged logo --- frontend/src/utils/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/utils/index.tsx b/frontend/src/utils/index.tsx index 51fb6b1..4db7de8 100644 --- a/frontend/src/utils/index.tsx +++ b/frontend/src/utils/index.tsx @@ -23,6 +23,7 @@ import { ModelSourceItem } from '../types/models'; import { Language, Languages, SettingsType } from '../types/settings'; import { DataProcessParameters, LoraFinetuneParameters } from '../types/train'; import { InstrumentTypeNameMap, tracksMinimalTotalTime } from '../types/composition'; +import logo from '../assets/images/logo.png'; export type Cache = { version: string @@ -305,6 +306,8 @@ export function getServerRoot(defaultLocalPort: number) { export function absPathAsset(path: string) { if (commonStore.platform === 'web') return path; + if (path === logo) + return path; if ((path.length > 0 && path[0] === '/') || (path.length > 1 && path[1] === ':')) { return '=>' + path;