提交 10b94a94 编写于 作者: D DCloud_LXH

fix: router.replace error

上级 c7ad6776
import getRedirectRouter from './config/redirectRouter';
import VueRouter from 'vue-router'
const originalPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(location, resolve, reject) {
if (resolve || reject) return originalPush.call(this, location, resolve, reject)
return originalPush.call(this, location).catch(err => err)
}
function handleRedirectForCleanUrls(router, to) {
if (isRouteExists(router, to.path)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册