fix damaged logo

This commit is contained in:
josc146 2023-11-30 21:48:14 +08:00
parent b3110d4ad8
commit 86a855e7bc

View File

@ -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;