From 8b8a915124ba39edcee45333be3968afba54294e Mon Sep 17 00:00:00 2001 From: zyn Date: Mon, 8 Jan 2024 09:55:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BA=A7=E5=93=81=E6=A0=87=E5=87=86?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 9f068e3f9..471689c71 100644 --- a/src/main.js +++ b/src/main.js @@ -41,7 +41,6 @@ import Contextmenu from 'vue-contextmenujs' // vant import vant from 'vant' import 'vant/lib/index.css' -//vant import animate from 'animate.css' import tool from './utils/tool' @@ -63,6 +62,10 @@ router.beforeEach((to, from, next) => { if (isMobile()) { if (fullPath.indexOf('phone') !== 0) { let path = fullPath.replace(fullPath.charAt(0), fullPath.charAt(0).toUpperCase()) + if (path.indexOf('BussLibraryProduct/') !== -1) { + // 产品标准流程-pc端重构,pc端路由改变而手机端路由未改变,此处让手机端跳转到正确路由 + path = path.replace('BussLibraryProduct/', 'BussLibraryProduct') + } path = '/phone' + path next({ path: path }) }