<template>
  <div id="app">
    <!-- Navbar 固定显示 -->
    <Navbar />
    
    <!-- router-view 会根据路由动态切换组件 -->
    <router-view />
  </div>
</template>

<script>
import Navbar from './components/Navbar.vue';

export default {
  name: 'App',
  components: {
    Navbar
  }
};
</script>

<style scoped>
#app {
  position: relative;
}

.Navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}
</style>
