fix damaged logo
This commit is contained in:
parent
b3110d4ad8
commit
86a855e7bc
@ -23,6 +23,7 @@ import { ModelSourceItem } from '../types/models';
|
|||||||
import { Language, Languages, SettingsType } from '../types/settings';
|
import { Language, Languages, SettingsType } from '../types/settings';
|
||||||
import { DataProcessParameters, LoraFinetuneParameters } from '../types/train';
|
import { DataProcessParameters, LoraFinetuneParameters } from '../types/train';
|
||||||
import { InstrumentTypeNameMap, tracksMinimalTotalTime } from '../types/composition';
|
import { InstrumentTypeNameMap, tracksMinimalTotalTime } from '../types/composition';
|
||||||
|
import logo from '../assets/images/logo.png';
|
||||||
|
|
||||||
export type Cache = {
|
export type Cache = {
|
||||||
version: string
|
version: string
|
||||||
@ -305,6 +306,8 @@ export function getServerRoot(defaultLocalPort: number) {
|
|||||||
export function absPathAsset(path: string) {
|
export function absPathAsset(path: string) {
|
||||||
if (commonStore.platform === 'web')
|
if (commonStore.platform === 'web')
|
||||||
return path;
|
return path;
|
||||||
|
if (path === logo)
|
||||||
|
return path;
|
||||||
if ((path.length > 0 && path[0] === '/') ||
|
if ((path.length > 0 && path[0] === '/') ||
|
||||||
(path.length > 1 && path[1] === ':')) {
|
(path.length > 1 && path[1] === ':')) {
|
||||||
return '=>' + path;
|
return '=>' + path;
|
||||||
|
Loading…
Reference in New Issue
Block a user