Commit 234196c3 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

Merge branch 'dev-srm' of http://10.0.0.22:3000/lingxi/lingxi-business-paltform into dev-srm

parents 73c057a1 c32fc8aa
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