unLogin.vue 787 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <!-- 移动端 教程页面 -->
  2. <template>
  3. <div class="course-page">
  4. <button class="btn" @click="unlogin">退出Denet登录</button>
  5. </div>
  6. </template>
  7. <script>
  8. import { removeStorage, storageKey } from '../../utils/help';
  9. export default {
  10. name: 'course',
  11. methods: {
  12. unlogin() {
  13. removeStorage(storageKey.userInfo);
  14. },
  15. },
  16. };
  17. </script>
  18. <style lang="scss">
  19. html,
  20. body,
  21. #__nuxt,
  22. #__layout {
  23. width: 100%;
  24. height: 100%;
  25. padding: 0;
  26. margin: 0;
  27. }
  28. </style>
  29. <style lang="scss" scoped>
  30. .course-page {
  31. position: relative;
  32. height: 100%;
  33. .btn {
  34. padding: 20px 30px;
  35. border: 1px solid #000;
  36. color: #000;
  37. font-size: 18px;
  38. text-align: center;
  39. border-radius: 6px;
  40. position: absolute;
  41. left: 50%;
  42. top: 50%;
  43. transform: translate(-50%, -50%);
  44. }
  45. }
  46. .btn {
  47. }
  48. </style>