From 18c6cf5406ad50cc7834b67495e36fc583e7fc35 Mon Sep 17 00:00:00 2001 From: TradeMate Dev Date: Thu, 21 May 2026 10:21:49 +0800 Subject: [PATCH] Move sidebar nav entirely into App.vue (eliminate component boundary) Previous attempts used a separate NavBar component (nav-bar.vue). Even with styles in App.vue's global scope, the component wrapper created an abstraction layer that prevented the nav from rendering. Now the nav markup, logic, and styles are all in App.vue directly: -
renders inline in App.vue template - .app-nav{display:none} on mobile, display:flex on desktop (>=1024px) - No component boundary, no data-v-xxxxx scoping issues - Deleted components/nav-bar.vue --- uni-app/src/App.vue | 73 ++++++++++++++++++++++++------ uni-app/src/components/nav-bar.vue | 55 ---------------------- 2 files changed, 60 insertions(+), 68 deletions(-) delete mode 100644 uni-app/src/components/nav-bar.vue diff --git a/uni-app/src/App.vue b/uni-app/src/App.vue index 3f75744..eb2918e 100644 --- a/uni-app/src/App.vue +++ b/uni-app/src/App.vue @@ -1,12 +1,59 @@