From b31d0bdae5ab5e7c24eadf08fea270c6bb9f3c7a Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期四, 09 二月 2023 16:58:46 +0800
Subject: [PATCH] 1.自动排程代码正在研究

---
 src/layout/components/Navbar.vue |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 7d7320f..1b24596 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -5,14 +5,13 @@
       :class="{'display_btw':$store.state.settings.menuIsHorizontal}"
       :style="{background: $store.state.settings.headBackgroundColorValue? '#304156':'#fff'}"
     >
+
       <hamburger
         v-if="!$store.state.settings.menuIsHorizontal"
         :is-active="sidebar.opened"
         class="hamburger-container"
         @toggleClick="toggleSideBar"
       />
-      <!--      :style="{marginLeft:$store.state.settings.menuIsHorizontal?'50px':'40px'}"-->
-      <!--      :style="{marginLeft:$store.state.settings.menuIsHorizontal?'20px':''}"-->
 
       <breadcrumb
         class="breadcrumb-container"
@@ -240,8 +239,20 @@
   },
   methods: {
     pageRefreshClick() {
-      console.log('鐐瑰嚮浜嗭紒')
       this.reload()
+      const tabViews = this.$store.state.tagsView.visitedViews.map(item => {
+        return {
+          fullPath: item.fullPath,
+          hash: item.hash,
+          meta: { ...item.meta },
+          name: item.name,
+          params: { ...item.params },
+          path: item.path,
+          query: { ...item.query },
+          title: item.title
+        }
+      })
+      sessionStorage.setItem('tabViews', JSON.stringify(tabViews))
     },
     handleSelect(key, keyPath) {
       // console.log(key, keyPath)

--
Gitblit v1.9.3