Commit c357651a authored by 郝聪敏's avatar 郝聪敏

fix: 修改路由历史记录bug

parent cc49fe1e
export default { export default {
tel: "010-82194734", tel: "18701683762",
serviceHours: "9:00-21:00", serviceHours: "9:00-21:00",
sobot: sobot:
"https://mangobaoxian.sobot.com/chat/h5/v2/index.html?sysnum=cfe2ac6677f94698be2e2d842f23066d", "https://mangobaoxian.sobot.com/chat/h5/v2/index.html?sysnum=cfe2ac6677f94698be2e2d842f23066d",
......
...@@ -2,6 +2,8 @@ import localStorage from "@/service/localStorage"; ...@@ -2,6 +2,8 @@ import localStorage from "@/service/localStorage";
export function routerStorage(toPath, fromPath) { export function routerStorage(toPath, fromPath) {
let storage = localStorage.get("history") || { isBack: false, paths: [], fromPath: "" }; let storage = localStorage.get("history") || { isBack: false, paths: [], fromPath: "" };
// 初始化
if (fromPath === "/") storage.paths = [];
if (storage.paths.includes(toPath)) { if (storage.paths.includes(toPath)) {
const toPathIndex = storage.paths.indexOf(toPath); const toPathIndex = storage.paths.indexOf(toPath);
storage = { ...storage, isBack: true, fromPath }; storage = { ...storage, isBack: true, fromPath };
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
<div class="itd-quali-item"> <div class="itd-quali-item">
<p class="itd-quali-item-title">8. 客服与消费者投诉电话</p> <p class="itd-quali-item-title">8. 客服与消费者投诉电话</p>
<div class="itd-quali-item-content"> <div class="itd-quali-item-content">
010-82194734 18701683762
</div> </div>
</div> </div>
<div class="itd-quali-item"> <div class="itd-quali-item">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment