App.vue 915 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <div id="app">
  3. <router-view />
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. mounted (){
  9. this.$nextTick(() => {
  10. document.body.oncontextmenu = (e) => {
  11. return false;
  12. }
  13. })
  14. }
  15. }
  16. </script>
  17. <style lang="less">
  18. *{
  19. margin: 0;
  20. padding: 0;
  21. }
  22. html, body{
  23. width: 100%;
  24. height: 100%;
  25. position: absolute;
  26. top: 0;
  27. left: 0;
  28. }
  29. #app {
  30. width: 100%;
  31. height: 100%;
  32. overflow: hidden;
  33. position: absolute;
  34. top: 0;
  35. left: 0;
  36. font-size: 14px;
  37. color: rgb(66, 66, 66);
  38. font-family: Avenir, Helvetica, Arial, sans-serif;
  39. background: #f5f6f9;
  40. }
  41. // 重置 element 样式
  42. // .el-message-box{
  43. // position: relative;
  44. // top: -10%;
  45. // }
  46. </style>