From 2591d9565cda1c392a630ddfd988952c7ae65cda Mon Sep 17 00:00:00 2001 From: yang <1441163367@qq.com> Date: 星期三, 28 十二月 2022 17:10:55 +0800 Subject: [PATCH] 第一版PAD --- src/router/router.js | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/router/router.js b/src/router/router.js index 4653ea7..ac1b936 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -1,15 +1,12 @@ import Vue from 'vue' import VueRouter from 'vue-router' -import PageRouter from './page/' -import ViewsRouter from './views/' -import ShowRouter from './show/index' import padRouter from './pad/index' import AvueRouter from './avue-router' import Store from '../store/' Vue.use(VueRouter) //鍒涘缓璺敱 export const createRouter = () => new VueRouter({ - routes: [ ...ViewsRouter,...ShowRouter, ...padRouter] + routes: [ ...padRouter] }) const Router = createRouter() @@ -26,10 +23,10 @@ const originalPush = VueRouter.prototype.push const originalReplace = VueRouter.prototype.replace //push -VueRouter.prototype.push = function push(location, onResolve, onReject) { +/*VueRouter.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) -} +}*/ //replace VueRouter.prototype.replace = function push(location, onResolve, onReject) { if (onResolve || onReject) return originalReplace.call(this, location, onResolve, onReject) -- Gitblit v1.9.1