App.vue 595 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div id="App">
  3. <router-view />
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'App',
  9. props: {},
  10. components: {},
  11. data: () => ({}),
  12. created() {
  13. this.checkOpenid();
  14. },
  15. computed: {},
  16. methods: {
  17. checkOpenid() {
  18. const openid = this.$route.query.openid;
  19. if (openid) sessionStorage.setItem('openid', openid);
  20. },
  21. },
  22. };
  23. </script>
  24. <style lang="less">
  25. html {
  26. overflow-x: hidden;
  27. overflow-y: auto;
  28. }
  29. body {
  30. margin: 0;
  31. overflow-x: hidden;
  32. }
  33. .textOver {
  34. overflow: hidden;
  35. text-overflow: ellipsis;
  36. white-space: nowrap;
  37. }
  38. </style>