Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
b2f80ab2
Commit
b2f80ab2
authored
Jun 11, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 恢复代码
parent
eb6bd65d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
proxy.ts
config/proxy.ts
+5
-5
index.ts
config/routes/index.ts
+10
-10
request.ts
src/utils/request.ts
+2
-2
No files found.
config/proxy.ts
View file @
b2f80ab2
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
,
...
...
config/routes/index.ts
View file @
b2f80ab2
...
@@ -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
,
...
...
src/utils/request.ts
View file @
b2f80ab2
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment