Commit b2f80ab2 authored by XieZhiXiong's avatar XieZhiXiong

chore: 恢复代码

parent eb6bd65d
export default {
'/api/member': {
'target': 'http://10.0.0.12:8100',
'changeOrigin': true,
'pathRewrite': { '^/api/member': '/member' },
},
// '/api/member': {
// 'target': 'http://10.0.0.12:8100',
// 'changeOrigin': true,
// 'pathRewrite': { '^/api/member': '/member' },
// },
'/api': {
'target': process.env.BACK_GATEWAY || 'http://10.0.0.10:8100/',
'changeOrigin': true,
......
......@@ -58,13 +58,13 @@ const memberCenterRoute = {
noMargin: true,
name: '修改个人信息'
},
{
path: `/memberCenter/home`,
name: 'home',
icon: 'home',
key: 'home',
component: '@/pages/home',
},
// {
// path: `/memberCenter/home`,
// name: 'home',
// icon: 'home',
// key: 'home',
// component: '@/pages/home',
// },
// ShopRoute,
// CommodityRoute,
// srm开发临时使用...
......@@ -75,9 +75,9 @@ const memberCenterRoute = {
// contracRoute,
//...
// AuthConfigRoute,
MemberRoute,
HandlingRoute,
// ...asyncRoutes,
// MemberRoute,
// HandlingRoute,
...asyncRoutes,
{
path: '/memberCenter/noAuth',
auth: false,
......
......@@ -120,8 +120,8 @@ class ApiRequest {
baseRequest<IRequestSuccess<T>>(url, options).then(res => {
// 登录验证
if (res.code === 1101) {
// removeAuth()
// window.location.replace(`/user/login?redirect=${btoa(encodeURIComponent(String(window.location)))}`)
removeAuth()
window.location.replace(`/user/login?redirect=${btoa(encodeURIComponent(String(window.location)))}`)
message.destroy()
message.error(res.message)
reject(res)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment