App.vue


に質問
f 5を押すたびにホームページに戻ります.
構成部品としてリフレッシュします.
解決策sessionStorage.setItem('activeIndex2', idx);現在のメニューのインデックス値をセッション・リポジトリに保存するにはsessionStorage.getItem('activeIndex2');インポートを使用した値の保存
created(){
      const tmp = sessionStorage.getItem('activeIndex2');
      console.log(tmp);
      if(tmp === null){
        this.activeIndex2 = '100';
        this.$router.push({path:'/home'});
      }
      else{
        this.activeIndex2 = tmp;
      }