From d8f03af7716a636ca48b87da29bcd6ccb2e6b8c6 Mon Sep 17 00:00:00 2001 From: hejianhao <15708179461@qq.com> Date: 星期三, 08 一月 2025 10:18:24 +0800 Subject: [PATCH] 删除没用的东西 --- src/router/index.js | 11 ++--------- 1 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index e88ff10..bda0dbe 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,8 +1,6 @@ import Vue from 'vue' import Router from 'vue-router' -import blue from './blue' - - +import routers from './routers'; const changePush = Router.prototype.push; Router.prototype.push = function push(location) { @@ -11,17 +9,12 @@ Vue.use(Router); -export let constantRoutes = blue -// export let constantRoutes = darkBlue -// export let constantRoutes = green -// export let constantRoutes = purple - const createRouter = () => new Router({ mode: 'hash', // require service support scrollBehavior: () => ({ y: 0 }), - routes: constantRoutes + routes: routers }) const router = createRouter() -- Gitblit v1.7.1