mirror of
https://github.com/woodchen-ink/md-wechat.git
synced 2025-07-18 13:42:02 +08:00
* refactor: Does not depend on HBuilderX * refactor: Remove redundant files and configurations * doc: Add development instructions * feat: 添加 `build:h5-netlify` 命令以 build 到不同目录 * chore: Add post-release test function
22 lines
318 B
JavaScript
22 lines
318 B
JavaScript
import Vue from 'vue'
|
|
import VueRouter from 'vue-router'
|
|
import index from '@/pages/index/index'
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
const routes = [
|
|
{
|
|
path: `/`,
|
|
name: `index`,
|
|
component: index,
|
|
}
|
|
]
|
|
|
|
const router = new VueRouter({
|
|
mode: `history`,
|
|
base: process.env.BASE_URL,
|
|
routes,
|
|
})
|
|
|
|
export default router
|