App.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <template>
  2. <div id="app">
  3. <header class="grid-content header-color">
  4. <el-row>
  5. <a class="brand" href="#">frp client</a>
  6. </el-row>
  7. </header>
  8. <section>
  9. <el-row>
  10. <el-col id="side-nav" :xs="24" :md="4">
  11. <el-menu default-active="1" mode="vertical" theme="light" router="false" @select="handleSelect">
  12. <el-menu-item index="/">Overview</el-menu-item>
  13. <el-menu-item index="/configure">Configure</el-menu-item>
  14. <el-menu-item index="">Help</el-menu-item>
  15. </el-menu>
  16. </el-col>
  17. <el-col :xs="24" :md="20">
  18. <div id="content">
  19. <router-view></router-view>
  20. </div>
  21. </el-col>
  22. </el-row>
  23. </section>
  24. <footer></footer>
  25. </div>
  26. </template>
  27. <script>
  28. export default {
  29. methods: {
  30. handleSelect(key, path) {
  31. if (key == '') {
  32. window.open("https://github.com/fatedier/frp")
  33. }
  34. }
  35. }
  36. }
  37. </script>
  38. <style>
  39. body {
  40. background-color: #fafafa;
  41. margin: 0px;
  42. font-family: -apple-system,BlinkMacSystemFont,Helvetica Neue,sans-serif;
  43. }
  44. header {
  45. width: 100%;
  46. height: 60px;
  47. }
  48. .header-color {
  49. background: #58B7FF;
  50. }
  51. #content {
  52. margin-top: 20px;
  53. padding-right: 40px;
  54. }
  55. .brand {
  56. color: #fff;
  57. background-color: transparent;
  58. margin-left: 20px;
  59. float: left;
  60. line-height: 25px;
  61. font-size: 25px;
  62. padding: 15px 15px;
  63. height: 30px;
  64. text-decoration: none;
  65. }
  66. </style>