后端 + 前端:添加到购物车
This commit is contained in:
@@ -208,6 +208,7 @@ service.interceptors.response.use(
|
||||
// this.$router.push({ path: '/login' })
|
||||
// TODO 跳转到登陆页.不是很优雅
|
||||
location.replace('/#login');
|
||||
location.reload();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -58,7 +58,8 @@ const routes = [
|
||||
component: () => import('../page/user/info/detail'),
|
||||
name: 'user',
|
||||
meta: {
|
||||
title: '个人信息'
|
||||
title: '个人信息',
|
||||
requireAuth: true,
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -178,7 +179,8 @@ const routes = [
|
||||
path: '/order',
|
||||
component: () => import('../page/shipping/order'),
|
||||
meta: {
|
||||
title: '确认订单'
|
||||
title: '确认订单',
|
||||
requireAuth: true,
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user