|
@@ -1,16 +1,22 @@
|
|
|
import Vue from 'vue';
|
|
|
import VueRouter from 'vue-router';
|
|
|
import store from '@/store/index';
|
|
|
-import checkLogin from './before';
|
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
const routes = [
|
|
|
+ // 首页
|
|
|
+ {
|
|
|
+ path: '/',
|
|
|
+ name: 'index',
|
|
|
+ meta: { title: '首页', isleftarrow: false },
|
|
|
+ component: () => import('../views/index.vue'),
|
|
|
+ },
|
|
|
// 直播大厅
|
|
|
{
|
|
|
path: '/live/index',
|
|
|
name: 'live_index',
|
|
|
- meta: { title: '直播大厅', isleftarrow: true },
|
|
|
+ meta: { title: '直播大厅', isleftarrow: false },
|
|
|
component: () => import('../views/live/index.vue'),
|
|
|
},
|
|
|
{
|
|
@@ -120,8 +126,6 @@ router.beforeEach(async (to, form, next) => {
|
|
|
next();
|
|
|
}
|
|
|
});
|
|
|
-
|
|
|
-// checkLogin(router);
|
|
|
const originalPush = VueRouter.prototype.push;
|
|
|
VueRouter.prototype.push = function push(location, onResolve, onReject) {
|
|
|
if (onResolve || onReject) return originalPush.call(this, location, onResolve, onReject);
|