account.vue 832 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <div class="sub-nav">
  3. <div class="item" @click="onResetPassword">
  4. <span>修改密码</span>
  5. <span class="el-icon-arrow-right"></span>
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. import { mapGetters } from 'vuex'
  11. export default {
  12. layout: 'app-normal',
  13. data() {
  14. return {}
  15. },
  16. computed: {
  17. ...mapGetters(['routePrefix']),
  18. },
  19. methods: {
  20. // 修改密码
  21. onResetPassword() {
  22. this.$router.push(`${this.routePrefix}/center/settings/password`)
  23. },
  24. },
  25. }
  26. </script>
  27. <style lang="scss" scoped>
  28. .sub-nav {
  29. padding: 0 4vw;
  30. padding-top: 2.4vw;
  31. .item {
  32. width: 100%;
  33. padding: 3vw 0;
  34. display: flex;
  35. justify-content: space-between;
  36. font-size: 3.4vw;
  37. border-bottom: 0.1vw solid #c2c2c2;
  38. .el-icon-arrow-right {
  39. font-size: 4vw;
  40. }
  41. }
  42. }
  43. </style>