mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
perf: 优化平台logo获取方式
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user