登录页重置

This commit is contained in:
yaoyanan
2021-03-25 09:54:48 +08:00
parent 32958d85e4
commit a379aeb2a8
11 changed files with 309 additions and 364 deletions
+6
View File
@@ -4,6 +4,12 @@ import { constantRouterMap } from '@/config/router.config'
Vue.use(Router)
const originalPush = Router.prototype.push
Router.prototype.push = function push(location, onResolve, onReject) {
if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject)
return originalPush.call(this, location).catch(err => err)
}
export default new Router({
mode: 'history',
base: process.env.BASE_URL,