//info.vue
<template>
  <div id="info">My INFO page</div>
</template>
<script>
  export default {
    data() {
      return{}},methods: {},
    activated() {
      console.log(I'm going to execute as soon as this page is displayed.);
    },
    deactivated: function () {
      console.log('If I exit this page, it will execute.');
    },
    mounted(){}}</script>
<style scoped />
Copy the code