perf: 优化平台logo获取方式

This commit is contained in:
xiaoxian521
2023-10-21 19:54:22 +08:00
parent af224dceea
commit 14624119ed
4 changed files with 14 additions and 5 deletions

View File

@@ -124,6 +124,11 @@ export function useNav() {
return remainingPaths.includes(path);
}
/** 获取`logo` */
function getLogo() {
return new URL("/logo.svg", import.meta.url).href;
}
return {
title,
device,
@@ -139,6 +144,7 @@ export function useNav() {
menuSelect,
handleResize,
resolvePath,
getLogo,
isCollapse,
pureApp,
username,