|
@@ -33,10 +33,16 @@ const web = [
|
|
|
component: () => import('../views/apply/apply.vue'),
|
|
|
},
|
|
|
{
|
|
|
- path: '/cashing',
|
|
|
- name: 'cashing',
|
|
|
- meta: { title: '我要兑付' },
|
|
|
- component: () => import('../views/cashing/index.vue'),
|
|
|
+ path: '/cashing/quota',
|
|
|
+ name: 'cashing_quota',
|
|
|
+ meta: { title: '我的额度' },
|
|
|
+ component: () => import('../views/cashing/quota.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/cashing/order',
|
|
|
+ name: 'cashing_order',
|
|
|
+ meta: { title: '我的订单' },
|
|
|
+ component: () => import('../views/cashing/order.vue'),
|
|
|
},
|
|
|
{
|
|
|
path: '/service',
|
|
@@ -60,7 +66,7 @@ const router = new VueRouter({
|
|
|
router.beforeEach((to, from, next) => {
|
|
|
document.title = `${to.meta.title} `;
|
|
|
const token = localStorage.getItem('token');
|
|
|
- if (to.path == '/apply' || to.path == '/cashing' || to.path == '/service') {
|
|
|
+ if (to.path == '/apply' || to.path == '/cashing/quota' || to.path == '/service') {
|
|
|
if (!token) {
|
|
|
next(`/login?path=${to.path}`);
|
|
|
} else {
|