hejianhao
2025-01-08 d8f03af7716a636ca48b87da29bcd6ccb2e6b8c6
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()