When the third-party registration page in App jumps back to the vue page, where does the initialization method update the status again?

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

Menu