loulijun2021
2023-06-06 3a9c0a33f8358cd81542994701436fbc99def3da
src/App.vue
@@ -1,11 +1,31 @@
<template>
  <div id="app">
    <router-view />
    <!--    <keep-alive>-->
    <router-view v-if="isShow" />
    <!--    </keep-alive>-->
  </div>
</template>
<script>
export default {
  name: 'App'
  name: 'App',
  provide() {
    return {
      reload: this.reload
    }
  },
  data() {
    return {
      isShow: true
    }
  },
  methods: {
    reload() {
      this.isShow = false
      this.$nextTick(() => {
        this.isShow = true
      })
    }
  }
}
</script>