Commit b2f80ab2 authored by XieZhiXiong's avatar XieZhiXiong

chore: 恢复代码

parent eb6bd65d
export default { export default {
'/api/member': { // '/api/member': {
'target': 'http://10.0.0.12:8100', // 'target': 'http://10.0.0.12:8100',
'changeOrigin': true, // 'changeOrigin': true,
'pathRewrite': { '^/api/member': '/member' }, // 'pathRewrite': { '^/api/member': '/member' },
}, // },
'/api': { '/api': {
'target': process.env.BACK_GATEWAY || 'http://10.0.0.10:8100/', 'target': process.env.BACK_GATEWAY || 'http://10.0.0.10:8100/',
'changeOrigin': true, 'changeOrigin': true,
......
...@@ -58,13 +58,13 @@ const memberCenterRoute = { ...@@ -58,13 +58,13 @@ const memberCenterRoute = {
noMargin: true, noMargin: true,
name: '修改个人信息' name: '修改个人信息'
}, },
{ // {
path: `/memberCenter/home`, // path: `/memberCenter/home`,
name: 'home', // name: 'home',
icon: 'home', // icon: 'home',
key: 'home', // key: 'home',
component: '@/pages/home', // component: '@/pages/home',
}, // },
// ShopRoute, // ShopRoute,
// CommodityRoute, // CommodityRoute,
// srm开发临时使用... // srm开发临时使用...
...@@ -75,9 +75,9 @@ const memberCenterRoute = { ...@@ -75,9 +75,9 @@ const memberCenterRoute = {
// contracRoute, // contracRoute,
//... //...
// AuthConfigRoute, // AuthConfigRoute,
MemberRoute, // MemberRoute,
HandlingRoute, // HandlingRoute,
// ...asyncRoutes, ...asyncRoutes,
{ {
path: '/memberCenter/noAuth', path: '/memberCenter/noAuth',
auth: false, auth: false,
......
...@@ -120,8 +120,8 @@ class ApiRequest { ...@@ -120,8 +120,8 @@ class ApiRequest {
baseRequest<IRequestSuccess<T>>(url, options).then(res => { baseRequest<IRequestSuccess<T>>(url, options).then(res => {
// 登录验证 // 登录验证
if (res.code === 1101) { if (res.code === 1101) {
// removeAuth() removeAuth()
// window.location.replace(`/user/login?redirect=${btoa(encodeURIComponent(String(window.location)))}`) window.location.replace(`/user/login?redirect=${btoa(encodeURIComponent(String(window.location)))}`)
message.destroy() message.destroy()
message.error(res.message) message.error(res.message)
reject(res) 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