mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-20 00:16:44 +08:00
提交
This commit is contained in:
15
src/router/index.js
Normal file
15
src/router/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import Vue from 'vue'
|
||||
import Router from 'vue-router'
|
||||
import App from './app'
|
||||
import Example from './example'
|
||||
import Ebiz from './ebiz'
|
||||
|
||||
Vue.use(Router)
|
||||
|
||||
const constantRouterMap = [...App, ...Example, ...Ebiz] //后续可以删减模块
|
||||
|
||||
export default new Router({
|
||||
// mode: "history", //路由模式
|
||||
routes: constantRouterMap,
|
||||
scrollBehavior: () => ({ y: 0 })
|
||||
})
|
||||
Reference in New Issue
Block a user