Explorar o código

fix: 调整跳转交互

周玉环 hai 2 días
pai
achega
7b6ddb3dc1

+ 1 - 1
xinkeaboard-promotion-portal/src/App.vue

@@ -1,5 +1,5 @@
 <template>
-  <router-view :key="route.path"></router-view>
+  <router-view :key="route.fullPath"></router-view>
 </template>
 
 <script setup lang="ts">

+ 13 - 0
xinkeaboard-promotion-portal/src/main.ts

@@ -11,3 +11,16 @@ app.use(createPinia())
 app.use(router)
 app.use(ElementPlus)
 app.mount('#app')
+
+window.addEventListener('popstate', () => {
+  console.log('浏览器前进或后退触发 popstate');
+  window.location.reload();
+});
+
+// 监听 bfcache 恢复
+window.addEventListener('pageshow', (event) => {
+  if (event.persisted) {
+    console.log('页面从 bfcache 恢复');
+    window.location.reload();
+  }
+});

+ 1 - 1
xinkeaboard-promotion-portal/src/views/Record.vue

@@ -38,7 +38,7 @@
           <span
             >以上内容为AI根据三方网站获取的数据生成的内容,仅供参考,请仔细甄别。我司不对报告的真伪负责。</span
           >
-          <span>如果需要更详细研究请联系我们:xxx@163.com。</span>
+          <span>如果需要更详细研究请联系我们:contact@njnaexport.cn</span>
         </div>
       </div>
     </div>