Blame view

ant-design-vue-jeecg/src/router/index.js 267 Bytes
肖超群 authored
1
2
import Vue from 'vue'
import Router from 'vue-router'
肖超群 authored
3
import {constantRouterMap} from '@/config/router.config'
肖超群 authored
4
5
6
7

Vue.use(Router)

export default new Router({
8
  mode: 'hash',
肖超群 authored
9
  base: process.env.BASE_URL,
肖超群 authored
10
  scrollBehavior: () => ({y: 0}),
肖超群 authored
11
12
  routes: constantRouterMap
})