This commit is contained in:
2022-12-28 10:08:51 +08:00
parent 0fa93d545e
commit 3881370b6e
151 changed files with 17044 additions and 0 deletions

44
im/src/router/index.js Normal file
View File

@@ -0,0 +1,44 @@
import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
const RouteView = {
name: 'RouteView',
render: h => h('router-view'),
}
const routes = [
{
path: '/',
name: 'home',
component: () => import('@/views/message/index'),
meta: {
title: '',
needLogin: true,
},
},
{
path: '/message',
name: 'message',
component: () => import('@/views/message/index'),
meta: {
title: '消息通知',
needLogin: true,
},
},
{
path: '*',
name: '404 NotFound',
component: () => import('@/views/other/404'),
meta: {
title: '404 NotFound',
needLogin: false,
},
},
]
export default new Router({
routes,
mode: 'history',
})