App.vue 937 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <!-- <menuCom /> -->
  3. <!-- <div class="header">
  4. <img :src="cesiumImg" alt="">
  5. <p>“天镜” 数字孪生可视化引擎</p>
  6. </div> -->
  7. <RouterView :key="$route.fullPath" />
  8. </template>
  9. <script>
  10. // "cesium": "^1.132.0",
  11. // import menuCom from "@/views/menuCom.vue"
  12. import cesiumImg from "/cesiumIco.png"
  13. export default {
  14. components: {
  15. // menuCom
  16. },
  17. data() {
  18. return {
  19. cesiumImg
  20. }
  21. },
  22. }
  23. </script>
  24. <style lang="less">
  25. .header{
  26. display: flex;
  27. position: fixed;
  28. z-index: 1111;
  29. padding: 15px 0 0 15px;
  30. width: 100%;
  31. height: 50px;
  32. background: linear-gradient(to bottom, #000000, transparent);
  33. img{
  34. width: 35px;
  35. height: 35px;
  36. }
  37. p{
  38. color: #fff;
  39. margin-left: 10px;
  40. font-size: 18px;
  41. position: relative;
  42. top: 3px;
  43. font-weight: bold;
  44. }
  45. }
  46. </style>