|
|
@@ -81,7 +81,8 @@ const logo = new URL('/static/image/logo.png', import.meta.url).href
|
|
|
|
|
|
const userStore = useUserStore()
|
|
|
const router = useRouter()
|
|
|
-const userName = "徐天炜"
|
|
|
+const userInfo = JSON.parse(localStorage.getItem('userInfo') || '{}')
|
|
|
+const userName = userInfo?.username =='user_xtw' ? '徐天炜' : userInfo?.username || ''
|
|
|
const navItems = [
|
|
|
{ path: '/dashboard', name: '工作台' },
|
|
|
{ path: '/onemap', name: '空间一张图' },
|