mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 08:55:52 +08:00
IM
This commit is contained in:
24
im/src/router/contacts.js
Normal file
24
im/src/router/contacts.js
Normal file
@@ -0,0 +1,24 @@
|
||||
export default {
|
||||
path: '/contacts',
|
||||
name: 'contacts',
|
||||
redirect: '/contacts/apply',
|
||||
component: () => import('@/views/contacts/layout'),
|
||||
children: [
|
||||
{
|
||||
path: '/contacts/apply',
|
||||
meta: {
|
||||
title: '我的联系人',
|
||||
needLogin: true,
|
||||
},
|
||||
component: () => import('@/views/contacts/apply'),
|
||||
},
|
||||
{
|
||||
path: '/contacts/friends',
|
||||
meta: {
|
||||
title: '我的好友',
|
||||
needLogin: true,
|
||||
},
|
||||
component: () => import('@/views/contacts/friends'),
|
||||
},
|
||||
],
|
||||
}
|
||||
44
im/src/router/index.js
Normal file
44
im/src/router/index.js
Normal 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',
|
||||
})
|
||||
52
im/src/router/settings.js
Normal file
52
im/src/router/settings.js
Normal file
@@ -0,0 +1,52 @@
|
||||
export default {
|
||||
path: "/settings",
|
||||
name: "settings",
|
||||
meta: {
|
||||
title: "个人设置",
|
||||
needLogin: true,
|
||||
},
|
||||
redirect: "/settings/detail",
|
||||
component: () => import("@/views/settings/layout"),
|
||||
children: [
|
||||
{
|
||||
path: "/settings/detail",
|
||||
meta: {
|
||||
title: "个人信息",
|
||||
needLogin: true,
|
||||
},
|
||||
component: () => import("@/views/settings/detail"),
|
||||
},
|
||||
{
|
||||
path: "/settings/security",
|
||||
meta: {
|
||||
title: "安全设置",
|
||||
needLogin: true,
|
||||
},
|
||||
component: () => import("@/views/settings/security"),
|
||||
},
|
||||
{
|
||||
path: "/settings/binding",
|
||||
meta: {
|
||||
title: "账户绑定",
|
||||
needLogin: true,
|
||||
},
|
||||
component: () => import("@/views/settings/binding"),
|
||||
},
|
||||
{
|
||||
path: "/settings/personalize",
|
||||
meta: {
|
||||
title: "个性化设置",
|
||||
needLogin: true,
|
||||
},
|
||||
component: () => import("@/views/settings/personalize"),
|
||||
},
|
||||
{
|
||||
path: "/settings/notification",
|
||||
meta: {
|
||||
title: "消息设置",
|
||||
needLogin: true,
|
||||
},
|
||||
component: () => import("@/views/settings/notification"),
|
||||
},
|
||||
],
|
||||
};
|
||||
Reference in New Issue
Block a user