Browse Source

热点列表页面考虑到直接加载而非从别的前端路由跳转过去的情况

(cherry picked from commit d12de684554a6173f8f1a03bcd972b4ba06f5883)
任一存 2 years ago
parent
commit
969973bb3d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/views/gui/CustomHotspotList.vue
  2. 1 1
      src/views/gui/menu.vue

+ 1 - 1
src/views/gui/CustomHotspotList.vue

@@ -2,7 +2,7 @@
   <div class="custom-hotspot-list">
     <button
       class="close"
-      @click="$router.go(-1)"
+      @click="$router.push({name: 'Home', query: $route.query})"
     >
       <img
         class=""

+ 1 - 1
src/views/gui/menu.vue

@@ -113,7 +113,7 @@
             data-original-title="热点列表"
             rel="tooltip"
             title=""
-            @click="$router.push({name: 'HotspotList'})"
+            @click="$router.push({name: 'HotspotList', query: $route.query })"
           >
             <img
               draggable="false"