index.vue 849 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div>
  3. <el-menu
  4. :default-active="$route.path"
  5. class="el-menu-demo"
  6. mode="horizontal"
  7. background-color="#001529"
  8. router
  9. text-color="#fff"
  10. active-text-color="#ffd04b"
  11. >
  12. <el-menu-item index="/">薪酬通</el-menu-item>
  13. <el-menu-item index="/update/system">系统更新</el-menu-item>
  14. <!-- <el-menu-item index="/update/history">历史更新</el-menu-item>
  15. <el-menu-item index="/update/monitor">程序监控</el-menu-item> -->
  16. </el-menu>
  17. <div class="app-container">
  18. <router-view />
  19. </div>
  20. </div>
  21. </template>
  22. <script>
  23. export default {
  24. name: 'system-update',
  25. methods: {
  26. handleSelect (key, keyPath) {
  27. console.log(key, keyPath)
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss" scoped>
  33. .app-container {
  34. height: calc(100vh - 61px);
  35. }
  36. </style>