You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
831 B

5 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
4 years ago
5 years ago
  1. <template>
  2. <div class="mod-home">
  3. <h3>旭捷</h3>
  4. <ul>
  5. <li><h3>欢迎:{{userName}}!!!</h3></li>
  6. </ul>
  7. </div>
  8. </template>
  9. <script>
  10. export default {
  11. methods: {
  12. languageRefresh(){
  13. let bool = localStorage.getItem('refresh')
  14. if (bool == '0'){
  15. this.$router.go(0);
  16. localStorage.setItem('refresh','1')
  17. }
  18. }
  19. },
  20. computed: {
  21. userName: {
  22. get() {
  23. return this.$store.state.user.name
  24. }
  25. },
  26. mainTabs: {
  27. get() {
  28. return this.$store.state.common.mainTabs
  29. },
  30. set(val) {
  31. this.$store.commit('common/updateMainTabs', val)
  32. }
  33. }
  34. },
  35. beforeMount() {
  36. this.languageRefresh()
  37. }
  38. }
  39. </script>
  40. <style>
  41. .mod-home {
  42. line-height: 1.5;
  43. }
  44. </style>