for example, after the phone is bound, the status of the page should be updated. What is the specific method?
for example, after the phone is bound, the status of the page should be updated. What is the specific method?
App.js
<template>
  <div id="app">
      <router-view v-if="isRouterAlive"></router-view>
  </div>
</template>
<script>
export default {
  name: "App",
  provide() {
    return {
      reload: this.reload
    };
  },
  data() {
    return {
      isRouterAlive: true
    };
  },
  methods: {
    reload() {
      this.isRouterAlive = false;
      this.$nextTick(function() {
        this.isRouterAlive = true;
      });
    }
  }
};
</script>subpages
inject: ["reload"],
methods: {
 handleReload() {
   this.reload();
 }
}I don't know if this is feasible
 in the lifecycle hook function of vue 
 can be created, or mounted 
Previous: Es6 uses a declared variable to deconstruct an assignment
Next: Click on the page to realize the automatic extension of session