App.vue 582 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div id="app">
  3. <router-view v-if="isRouterAlive"/>
  4. </div>
  5. </template>
  6. <script>
  7. export default {
  8. name: 'App',
  9. provide () {
  10. return{
  11. reload: this.reload
  12. }
  13. },
  14. data() {
  15. return {
  16. isRouterAlive: true
  17. }
  18. },
  19. methods:{
  20. reload(){
  21. this.isRouterAlive = false
  22. this.$nextTick(function(){
  23. this.isRouterAlive = true
  24. })
  25. }
  26. }
  27. }
  28. </script>
  29. <style>
  30. .el-table--medium th{
  31. height: 35px !important;
  32. padding: 2px 0 !important;
  33. }
  34. .el-table--medium td{
  35. /* padding: 2px 0 !important; */
  36. }
  37. </style>